MCPcopy Create free account
hub / github.com/AI45Lab/Code / assert

Method assert

sdk/node/examples/git/test_worktree_git.ts:43–45  ·  view source on GitHub ↗
(condition: boolean, message: string)

Source from the content-addressed store, hash-verified

41 }
42
43 static assert(condition: boolean, message: string): void {
44 if (!condition) throw new Error(`Assertion failed: ${message}`);
45 }
46
47 async runAll(): Promise<void> {
48 console.log(`Config: ${this.configPath}`);

Callers 1

runAllMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected