MCPcopy Create free account
hub / github.com/CesiumGS/cesium-native / expectParserResult

Function expectParserResult

CesiumVectorData/test/TestGeoJsonParser.cpp:33–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33void expectParserResult(
34 const std::string& json,
35 const std::function<void(const GeoJsonDocument&)>& checkFunc) {
36 Result<GeoJsonDocument> doc =
37 GeoJsonDocument::fromGeoJson(stringToBytes(json));
38 CHECK(!doc.errors.hasErrors());
39 REQUIRE(doc.value);
40 checkFunc(*doc.value);
41}
42} // namespace
43
44TEST_CASE("Parse Point primitives") {

Callers 1

Calls 2

hasErrorsMethod · 0.80
stringToBytesFunction · 0.70

Tested by

no test coverage detected