MCPcopy Create free account
hub / github.com/creationix/http-parser-js / expectBody

Function expectBody

tests/parallel/test-http-parser.js:66–71  ·  view source on GitHub ↗
(expected)

Source from the content-addressed store, hash-verified

64
65
66function expectBody(expected) {
67 return mustCall(function(buf, start, len) {
68 var body = '' + buf.slice(start, start + len);
69 assert.equal(body, expected);
70 });
71}
72
73
74//

Callers 1

Calls 1

mustCallFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…