MCPcopy Create free account
hub / github.com/Fields2Cover/Fields2Cover / TEST

Function TEST

tests/cpp/utils/parser_test.cpp:13–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11#include "fields2cover/utils/visualizer.h"
12
13TEST(fields2cover_utils_parser, import_gml) {
14 F2CFields fields;
15
16 f2c::Parser::importGml(std::string(DATA_PATH) + "test1.xml",
17 fields);
18
19 EXPECT_EQ(fields[0].getId(), "b913fe9d-ed9f-4cc4-aa77-a10652165455");
20 EXPECT_EQ(fields[0].getCRS(), "EPSG:4258");
21}
22
23TEST(fields2cover_utils_parser, get_area_imported) {
24 F2CFields fields;

Callers

nothing calls this directly

Calls 10

getCRSMethod · 0.80
setEPSGCoordSystemMethod · 0.80
getCellMethod · 0.80
getIdMethod · 0.45
areaMethod · 0.45
sizeMethod · 0.45
getGeometryMethod · 0.45
getNameMethod · 0.45
getWidthMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected