MCPcopy Create free account
hub / github.com/github/gh-aw / assertNotContains

Function assertNotContains

scripts/generate-agent-factory.test.js:39–47  ·  view source on GitHub ↗

* Test helper to check if output does NOT contain unexpected content

(content, unexpected, testName)

Source from the content-addressed store, hash-verified

37 * Test helper to check if output does NOT contain unexpected content
38 */
39function assertNotContains(content, unexpected, testName) {
40 if (content.includes(unexpected)) {
41 console.error(`❌ FAIL: ${testName}`);
42 console.error(` Expected NOT to find: "${unexpected}"`);
43 return false;
44 }
45 console.log(`✓ PASS: ${testName}`);
46 return true;
47}
48
49/**
50 * Test helper to count occurrences of a pattern

Callers 1

Calls 1

errorMethod · 0.80

Tested by

no test coverage detected