MCPcopy Create free account
hub / github.com/alibaba/open-code-review / test

Function test

scripts/github-actions/release-contract.test.js:121–129  ·  view source on GitHub ↗
(name, check)

Source from the content-addressed store, hash-verified

119
120let failures = 0;
121function test(name, check) {
122 try {
123 check();
124 console.log(`PASS ${name}`);
125 } catch (error) {
126 failures += 1;
127 console.error(`FAIL ${name}: ${error.message}`);
128 }
129}
130
131test("container scripts explicitly select Bash", () => {
132 for (const step of [PREFLIGHT, VERSION_GATE]) {

Callers 3

mainFunction · 0.70

Calls 1

checkFunction · 0.85

Tested by

no test coverage detected