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

Function fn

toml/parse_test.ts:7–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5Deno.test({
6 name: "parse() handles error message",
7 fn() {
8 assertThrows(
9 () => parse("foo = 1\nbar ="),
10 SyntaxError,
11 "line 2, column 5",
12 );
13 assertThrows(
14 () => parse("foo = 1\nbar = 'foo\nbaz=1"),
15 SyntaxError,
16 "line 2, column 10",
17 );
18 },
19});
20
21Deno.test({

Callers

nothing calls this directly

Calls 4

assertThrowsFunction · 0.90
parseFunction · 0.90
assertEqualsFunction · 0.90
assertFunction · 0.90

Tested by

no test coverage detected