MCPcopy Index your code
hub / github.com/glideapps/quicktype / test

Method test

test/fixtures.ts:432–449  ·  view source on GitHub ↗
(
    sample: string,
    additionalRendererOptions: RendererOptions,
    jsonFiles: string[]
  )

Source from the content-addressed store, hash-verified

430 }
431
432 async test(
433 sample: string,
434 additionalRendererOptions: RendererOptions,
435 jsonFiles: string[]
436 ): Promise<void> {
437 if (this.language.compileCommand) {
438 exec(this.language.compileCommand);
439 }
440 for (const json of jsonFiles) {
441 const jsonBase = path.basename(json);
442 compareJsonFileToJson({
443 expectedFile: jsonBase,
444 given: { command: this.language.runCommand(jsonBase) },
445 strict: false,
446 allowMissingNull: this.language.allowMissingNull
447 });
448 }
449 }
450}
451
452function graphQLSchemaFilename(baseName: string): string {

Callers

nothing calls this directly

Calls 3

execFunction · 0.90
compareJsonFileToJsonFunction · 0.90
runCommandMethod · 0.80

Tested by

no test coverage detected