MCPcopy
hub / github.com/microsoft/vscode / assertInvalidParse

Function assertInvalidParse

src/vs/base/test/common/json.test.ts:35–41  ·  view source on GitHub ↗
(input: string, expected: any, options?: ParseOptions)

Source from the content-addressed store, hash-verified

33}
34
35function assertInvalidParse(input: string, expected: any, options?: ParseOptions): void {
36 const errors: ParseError[] = [];
37 const actual = parse(input, errors, options);
38
39 assert(errors.length > 0);
40 assert.deepStrictEqual(actual, expected);
41}
42
43function assertTree(input: string, expected: any, expectedErrors: number[] = [], options?: ParseOptions): void {
44 const errors: ParseError[] = [];

Callers 1

json.test.tsFile · 0.85

Calls 2

parseFunction · 0.90
assertFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…