MCPcopy Create free account
hub / github.com/dataform-co/dataform / checkTestNameUniqueness

Method checkTestNameUniqueness

core/session.ts:701–712  ·  view source on GitHub ↗
(tests: dataform.ITest[])

Source from the content-addressed store, hash-verified

699 }
700
701 private checkTestNameUniqueness(tests: dataform.ITest[]) {
702 const allNames: string[] = [];
703 tests.forEach(testProto => {
704 if (allNames.includes(testProto.name)) {
705 this.compileError(
706 new Error(`Duplicate test name detected: "${testProto.name}"`),
707 testProto.fileName
708 );
709 }
710 allNames.push(testProto.name);
711 });
712 }
713
714 private checkCircularity(actions: ActionProto[]) {
715 const allActionsByStringifiedTarget = new Map<string, ActionProto>(

Callers 1

compileMethod · 0.95

Calls 2

compileErrorMethod · 0.95
pushMethod · 0.45

Tested by

no test coverage detected