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

Function TEST

tests/cpp/types/Geometries_test.cpp:10–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8#include "fields2cover/types.h"
9
10TEST(fields2cover_types_geometries, constructor) {
11 const int N = 10;
12 F2CLineString line;
13 for (int i =0; i < N; ++i) {
14 line.addPoint(i,i);
15 }
16
17 F2CLineString line2 (line.get());
18
19 for (int i =0; i < N; ++i) {
20 EXPECT_EQ(line2.getX(i), i);
21 EXPECT_EQ(line2.getY(i), i);
22 }
23 EXPECT_EQ(line2.size(), N);
24}
25
26TEST(fields2cover_types_geometries, access_iterators) {
27 const int N = 10;

Callers

nothing calls this directly

Calls 10

getMethod · 0.80
simplifyMethod · 0.80
addPointMethod · 0.45
getXMethod · 0.45
getYMethod · 0.45
sizeMethod · 0.45
lengthMethod · 0.45
getGeometryMethod · 0.45
areaMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected