MCPcopy Create free account
hub / github.com/nodejs/node / runNegativeIndexTests

Function runNegativeIndexTests

deps/v8/test/mjsunit/harmony/dataview-accessors.js:254–288  ·  view source on GitHub ↗
(isTestingGet)

Source from the content-addressed store, hash-verified

252}
253
254function runNegativeIndexTests(isTestingGet) {
255 createDataView(intArray1, 0, true, 0, 16);
256
257 test(isTestingGet, "Int8", -1, 0);
258 test(isTestingGet, "Int8", -2, 0);
259
260 test(isTestingGet, "Uint8", -1, 0);
261 test(isTestingGet, "Uint8", -2, 0);
262
263 test(isTestingGet, "Int16", -1, 1);
264 test(isTestingGet, "Int16", -2, 1);
265 test(isTestingGet, "Int16", -3, 1);
266
267 test(isTestingGet, "Uint16", -1, 1);
268 test(isTestingGet, "Uint16", -2, 1);
269 test(isTestingGet, "Uint16", -3, 1);
270
271 test(isTestingGet, "Int32", -1, 66051);
272 test(isTestingGet, "Int32", -3, 66051);
273 test(isTestingGet, "Int32", -5, 66051);
274
275 test(isTestingGet, "Uint32", -1, 66051);
276 test(isTestingGet, "Uint32", -3, 66051);
277 test(isTestingGet, "Uint32", -5, 66051);
278
279 createDataView([0, 0, 0, 0, 0, 0, 0, 0], 0, true, 0, 8);
280
281 test(isTestingGet, "Float32", -1, 0);
282 test(isTestingGet, "Float32", -3, 0);
283 test(isTestingGet, "Float32", -5, 0);
284
285 test(isTestingGet, "Float64", -1, 0);
286 test(isTestingGet, "Float64", -5, 0);
287 test(isTestingGet, "Float64", -9, 0);
288}
289
290
291function TestGetters() {

Callers 2

TestGettersFunction · 0.85
TestSettersFunction · 0.85

Calls 2

createDataViewFunction · 0.70
testFunction · 0.70

Tested by

no test coverage detected