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

Function TEST

tests/cpp/types/Field_test.cpp:10–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8#include "fields2cover/types.h"
9
10TEST(fields2cover_types_field, area) {
11 F2CField field;
12 EXPECT_EQ(field.area(), 0);
13
14 F2CCells cells {
15 F2CCell(F2CLinearRing({
16 F2CPoint(0,0), F2CPoint(2,0),F2CPoint(2,2),F2CPoint(0,2), F2CPoint(0,0)
17 }))
18 };
19 field.setField(cells);
20 EXPECT_EQ(field.area(), 4);
21 const auto field2 = field;
22 EXPECT_EQ(field2.area(), 4);
23}
24
25TEST(fields2cover_types_field, clone) {
26 F2CCells cells {F2CCell(F2CLinearRing({

Callers

nothing calls this directly

Calls 15

setFieldMethod · 0.80
setUTMCoordSystemMethod · 0.80
isCoordSystemUTMMethod · 0.80
getUTMCoordSystemMethod · 0.80
isCoordSystemEPSGMethod · 0.80
getEPSGCoordSystemMethod · 0.80
getUTMZoneMethod · 0.80
getUTMHemisphereMethod · 0.80
setEPSGCoordSystemMethod · 0.80
getCellsAbsPositionMethod · 0.80
getUTMDatumMethod · 0.80
setCRSMethod · 0.80

Tested by

no test coverage detected