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

Function TEST

tests/cpp/objectives/sg_obj/sg_obj_test.cpp:11–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9#include "fields2cover/objectives/sg_obj/sg_objective.h"
10
11TEST(fields2cover_obj_sg_obj, get_best_value) {
12 F2CSwaths swaths3 (2);
13 f2c::obj::SGObjective obj;
14 EXPECT_EQ(obj.computeCost(swaths3), 0);
15
16 for (int i = 0; i < 10; ++i) {
17 swaths3.emplace_back(F2CSwath());
18 EXPECT_EQ(obj.computeCost(swaths3), 0);
19 }
20}
21
22TEST(fields2cover_obj_sg_obj, computeCost_cost) {
23 F2CSwath swath1 (1);

Callers

nothing calls this directly

Calls 6

isMaximizingMethod · 0.80
computeCostMethod · 0.45
emplace_backMethod · 0.45
isMinimizingMethod · 0.45
isFastCompAvailableMethod · 0.45

Tested by

no test coverage detected