MCPcopy Create free account
hub / github.com/deepclause/agentvm / test

Function test

test/network/stack.test.js:14–24  ·  view source on GitHub ↗
(name, fn)

Source from the content-addressed store, hash-verified

12let failed = 0;
13
14function test(name, fn) {
15 try {
16 fn();
17 console.log(`✓ ${name}`);
18 passed++;
19 } catch (e) {
20 console.log(`✗ ${name}`);
21 console.log(` Error: ${e.message}`);
22 failed++;
23 }
24}
25
26// Helper to create Ethernet frame
27function createEthFrame(srcMac, dstMac, etherType, payload) {

Callers 1

stack.test.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected