push
github
273 of 274 branches covered (99.64%)
Branch coverage included in aggregate %.
10 of 11 new or added lines in 8 files covered. (90.91%)
1 existing line in 1 file now uncovered.695 of 702 relevant lines covered (99.0%)
24594710.16 hits per line
|
enum TokenType {
|
|
2 |
LEFT_BRACE, |
28✔ |
3 |
RIGHT_BRACE, |
28✔ |
4 |
LEFT_BRACKET, |
28✔ |
5 |
RIGHT_BRACKET, |
28✔ |
6 |
COLON, |
28✔ |
7 |
COMMA, |
28✔ |
8 |
TRUE, |
28✔ |
9 |
FALSE, |
28✔ |
10 |
NULL,
|
28✔ |
11 |
STRING, |
28✔ |
12 |
NUMBER, |
28✔ |
13 |
SEPARATOR, |
28✔ |
14 |
} |
|
15 |
|
|
16 |
export function TokenTypeToString(tokenType: TokenType): string { |
28✔ |
UNCOV
17
|
return [
|
× |
18 |
"LEFT_BRACE",
|
|
19 |
"RIGHT_BRACE",
|
|
20 |
"LEFT_BRACKET",
|
|
21 |
"RIGHT_BRACKET",
|
|
22 |
"COLON",
|
|
23 |
"COMMA",
|
|
24 |
"TRUE",
|
|
25 |
"FALSE",
|
|
26 |
"NULL",
|
|
27 |
"STRING",
|
|
28 |
"NUMBER",
|
|
29 |
"SEPARATOR",
|
|
30 |
][tokenType]; |
|
31 |
} |
|
32 |
|
|
33 |
export default TokenType; |
28✔ |