MCPcopy Create free account
hub / github.com/denoland/std / checkFormat

Function checkFormat

path/parse_format_test.ts:126–133  ·  view source on GitHub ↗
(
  path: typeof windows | typeof posix,
  testCases: FormatTestCase[],
)

Source from the content-addressed store, hash-verified

124}
125
126function checkFormat(
127 path: typeof windows | typeof posix,
128 testCases: FormatTestCase[],
129) {
130 testCases.forEach((testCase) => {
131 assertEquals(path.format(testCase[0]), testCase[1]);
132 });
133}
134
135Deno.test("windows.parse()", function () {
136 checkParseFormat(windows, winPaths);

Callers 1

Calls 3

assertEqualsFunction · 0.90
forEachMethod · 0.80
formatMethod · 0.80

Tested by

no test coverage detected