Coverage Report

Created: 2026-06-07 07:41

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/serenity/Userland/Libraries/LibJS/Runtime/Intl/SingleUnitIdentifiers.h
Line
Count
Source
1
/*
2
 * Copyright (c) 2022, the SerenityOS developers.
3
 *
4
 * SPDX-License-Identifier: BSD-2-Clause
5
 */
6
7
#pragma once
8
9
#include <AK/Array.h>
10
#include <AK/StringView.h>
11
12
namespace JS::Intl {
13
14
// Table 2: Single units sanctioned for use in ECMAScript, https://tc39.es/ecma402/#table-sanctioned-single-unit-identifiers
15
constexpr auto sanctioned_single_unit_identifiers()
16
0
{
17
0
    return AK::Array {
18
0
        "acre"sv,
19
0
        "bit"sv,
20
0
        "byte"sv,
21
0
        "celsius"sv,
22
0
        "centimeter"sv,
23
0
        "day"sv,
24
0
        "degree"sv,
25
0
        "fahrenheit"sv,
26
0
        "fluid-ounce"sv,
27
0
        "foot"sv,
28
0
        "gallon"sv,
29
0
        "gigabit"sv,
30
0
        "gigabyte"sv,
31
0
        "gram"sv,
32
0
        "hectare"sv,
33
0
        "hour"sv,
34
0
        "inch"sv,
35
0
        "kilobit"sv,
36
0
        "kilobyte"sv,
37
0
        "kilogram"sv,
38
0
        "kilometer"sv,
39
0
        "liter"sv,
40
0
        "megabit"sv,
41
0
        "megabyte"sv,
42
0
        "meter"sv,
43
0
        "microsecond"sv,
44
0
        "mile"sv,
45
0
        "mile-scandinavian"sv,
46
0
        "milliliter"sv,
47
0
        "millimeter"sv,
48
0
        "millisecond"sv,
49
0
        "minute"sv,
50
0
        "month"sv,
51
0
        "nanosecond"sv,
52
0
        "ounce"sv,
53
0
        "percent"sv,
54
0
        "petabyte"sv,
55
0
        "pound"sv,
56
0
        "second"sv,
57
0
        "stone"sv,
58
0
        "terabit"sv,
59
0
        "terabyte"sv,
60
0
        "week"sv,
61
0
        "yard"sv,
62
0
        "year"sv,
63
0
    };
64
0
}
65
66
}