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

Function test

deps/v8/test/mjsunit/switch.js:575–588  ·  view source on GitHub ↗
(clause_type)

Source from the content-addressed store, hash-verified

573 var test_types = ['symbols', 'strings', 'oddball', 'smi', 'heapnum'];
574
575 function test(clause_type) {
576 var values = clause_values[clause_type];
577
578 test_types.forEach(function(test_type) {
579 test_switch(clause_type, test_type, 'all', opt);
580 test_switch(clause_type, test_type, 'none', opt);
581
582 // Targeting specific clause feedback
583 values.forEach(function(value) {
584 test_switch(clause_type, test_type, [value], value, opt);
585 test_switch(clause_type, test_type, value, value, opt);
586 });
587 });
588 };
589
590 test('string');
591 test('smi');

Callers 1

test_switchesFunction · 0.70

Calls 2

test_switchFunction · 0.85
forEachMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…