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

Function testCodePointRange

deps/v8/test/mjsunit/whitespaces.js:110–130  ·  view source on GitHub ↗
(i)

Source from the content-addressed store, hash-verified

108}
109
110function testCodePointRange(i) {
111 assertTrue(i >= 0 && i < number_of_tests);
112
113 const from = firstCodePointOfRange(i);
114 const to = (i == number_of_tests - 1)
115 ? max_codepoint : firstCodePointOfRange(i + 1);
116
117 for (let i = from; i < to; i++) {
118 c = String.fromCharCode(i);
119 test_regexp(c + onebyte);
120 test_regexp(c + twobyte);
121 test_trim(c, onebyte + "trim");
122 test_trim(c, twobyte + "trim");
123 test_parseInt(c, onebyte);
124 test_parseInt(c, twobyte);
125 test_eval(c, onebyte);
126 test_eval(c, twobyte);
127 test_stringtonumber(c, onebytespace);
128 test_stringtonumber(c, twobytespace);
129 }
130}

Callers 10

whitespaces8.jsFile · 0.70
whitespaces3.jsFile · 0.70
whitespaces4.jsFile · 0.70
whitespaces0.jsFile · 0.70
whitespaces7.jsFile · 0.70
whitespaces2.jsFile · 0.70
whitespaces1.jsFile · 0.70
whitespaces6.jsFile · 0.70
whitespaces5.jsFile · 0.70
whitespaces9.jsFile · 0.70

Calls 7

test_regexpFunction · 0.85
test_trimFunction · 0.85
test_parseIntFunction · 0.85
test_evalFunction · 0.85
test_stringtonumberFunction · 0.85
assertTrueFunction · 0.70
firstCodePointOfRangeFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…