MCPcopy Create free account
hub / github.com/GNOME/gjs / createStructArray

Function createStructArray

installed-tests/js/testGIMarshalling.js:453–459  ·  view source on GitHub ↗
(StructType = GIMarshallingTests.BoxedStruct)

Source from the content-addressed store, hash-verified

451
452describe('C array with length', function () {
453 function createStructArray(StructType = GIMarshallingTests.BoxedStruct) {
454 return [1, 2, 3].map(num => {
455 let struct = new StructType();
456 struct.long_ = num;
457 return struct;
458 });
459 }
460
461 testSimpleMarshalling('array', [-1, 0, 1, 2], [-2, -1, 0, 1, 2], []);
462

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected