MCPcopy
hub / github.com/CesiumGS/cesium / test

Function test

Specs/test.mjs:6–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4// NodeJS smoke screen test
5
6async function test() {
7 const provider = await createWorldTerrainAsync();
8 const results = await sampleTerrain(provider, 11, [
9 Cartographic.fromDegrees(86.925145, 27.988257),
10 Cartographic.fromDegrees(87.0, 28.0),
11 ]);
12 assert(results[0].height > 5000);
13 assert(results[0].height < 10000);
14 assert(results[1].height > 5000);
15 assert(results[1].height < 10000);
16}
17
18test()
19

Callers 6

sandcastle.spec.jsFile · 0.90
picking.spec.jsFile · 0.90
models.spec.jsFile · 0.90
viewer.spec.jsFile · 0.90
test.mjsFile · 0.70

Calls 4

createWorldTerrainAsyncFunction · 0.85
sampleTerrainFunction · 0.85
assertFunction · 0.50
fromDegreesMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…