MCPcopy Index your code
hub / github.com/nodejs/node / validateResult

Function validateResult

test/parallel/test-process-cpuUsage.js:110–118  ·  view source on GitHub ↗
(result)

Source from the content-addressed store, hash-verified

108
109// Ensure that the return value is the expected shape.
110function validateResult(result) {
111 assert.notStrictEqual(result, null);
112
113 assert(Number.isFinite(result.user));
114 assert(Number.isFinite(result.system));
115
116 assert(result.user >= 0);
117 assert(result.system >= 0);
118}

Callers 1

Calls 1

assertFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…