MCPcopy Create free account
hub / github.com/glideapps/quicktype / test

Method test

test/fixtures.ts:505–525  ·  view source on GitHub ↗
(
    filename: string,
    additionalRendererOptions: RendererOptions,
    additionalFiles: string[]
  )

Source from the content-addressed store, hash-verified

503 }
504
505 async test(
506 filename: string,
507 additionalRendererOptions: RendererOptions,
508 additionalFiles: string[]
509 ): Promise<void> {
510 if (this.language.compileCommand) {
511 exec(this.language.compileCommand);
512 }
513 for (const fn of additionalFiles) {
514 if (!fn.endsWith(".json")) {
515 continue;
516 }
517 const jsonBase = path.basename(fn);
518 compareJsonFileToJson({
519 expectedFile: jsonBase,
520 given: { command: this.language.runCommand(jsonBase) },
521 strict: false,
522 allowMissingNull: this.language.allowMissingNull
523 });
524 }
525 }
526}
527
528export const allFixtures: Fixture[] = [

Callers

nothing calls this directly

Calls 3

execFunction · 0.90
compareJsonFileToJsonFunction · 0.90
runCommandMethod · 0.80

Tested by

no test coverage detected