• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

terminal-nerds / snippets / 5113553229

pending completion
5113553229

Pull #105

github

web-flow
Merge 5e619d6af into e71a93724
Pull Request #105: Major reorganization

267 of 329 branches covered (81.16%)

Branch coverage included in aggregate %.

377 of 377 new or added lines in 13 files covered. (100.0%)

3396 of 3511 relevant lines covered (96.72%)

34.38 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

89.13
/packages/string/source/char/sub/latin.ts
1
import { z } from "zod";
1✔
2

1✔
3
export const CHARS_LATIN_LOWER_CASE = [
1✔
4
        "a",
1✔
5
        "b",
1✔
6
        "c",
1✔
7
        "d",
1✔
8
        "e",
1✔
9
        "f",
1✔
10
        "g",
1✔
11
        "h",
1✔
12
        "i",
1✔
13
        "j",
1✔
14
        "k",
1✔
15
        "l",
1✔
16
        "m",
1✔
17
        "n",
1✔
18
        "o",
1✔
19
        "p",
1✔
20
        "r",
1✔
21
        "s",
1✔
22
        "t",
1✔
23
        "u",
1✔
24
        "v",
1✔
25
        "w",
1✔
26
        "x",
1✔
27
        "y",
1✔
28
        "z",
1✔
29
] as const;
1✔
30
export type CharLatinLowerCase = (typeof CHARS_LATIN_LOWER_CASE)[number];
1✔
31

1✔
32
export const SCHEMA_CHAR_LATIN_LOWER_CASE = z.enum(CHARS_LATIN_LOWER_CASE);
1✔
33

1✔
34
export function isCharLowerCase(input: string): asserts input is CharLatinLowerCase {
1✔
35
        SCHEMA_CHAR_LATIN_LOWER_CASE.parse(input);
×
36
}
×
37

1✔
38
export const CHARS_LATIN_UPPER_CASE = [
1✔
39
        "A",
1✔
40
        "B",
1✔
41
        "C",
1✔
42
        "D",
1✔
43
        "E",
1✔
44
        "F",
1✔
45
        "G",
1✔
46
        "H",
1✔
47
        "I",
1✔
48
        "J",
1✔
49
        "K",
1✔
50
        "L",
1✔
51
        "M",
1✔
52
        "N",
1✔
53
        "O",
1✔
54
        "P",
1✔
55
        "R",
1✔
56
        "S",
1✔
57
        "T",
1✔
58
        "U",
1✔
59
        "V",
1✔
60
        "W",
1✔
61
        "X",
1✔
62
        "Y",
1✔
63
        "Z",
1✔
64
] as const;
1✔
65
export type CharLatinUpperCase = (typeof CHARS_LATIN_UPPER_CASE)[number];
1✔
66

1✔
67
export const SCHEMA_CHAR_LATIN_UPPER_CASE = z.enum(CHARS_LATIN_UPPER_CASE);
1✔
68

1✔
69
export function isCharUpperCase(input: string): input is CharLatinUpperCase {
1✔
70
        return SCHEMA_CHAR_LATIN_UPPER_CASE.safeParse(input).success;
×
71
}
×
72

1✔
73
export function validateCharUpperCase(input: string): asserts input is CharLatinUpperCase {
1✔
74
        SCHEMA_CHAR_LATIN_UPPER_CASE.parse(input);
×
75
}
×
76

1✔
77
/* prettier-ignore */
1✔
78
export const CHARS_LATIN = [
1✔
79
        ...CHARS_LATIN_LOWER_CASE,
1✔
80
        ...CHARS_LATIN_UPPER_CASE,
1✔
81
] as const;
1✔
82
export type CharLatin = (typeof CHARS_LATIN)[number];
1✔
83

1✔
84
export const SCHEMA_CHAR_LATIN = z.enum(CHARS_LATIN);
1✔
85

1✔
86
export function isCharLatin(input: string): input is CharLatin {
1✔
87
        return SCHEMA_CHAR_LATIN.safeParse(input).success;
×
88
}
×
89

1✔
90
export function validateCharLatin(input: string): asserts input is CharLatin {
1✔
91
        SCHEMA_CHAR_LATIN.parse(input);
×
92
}
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc