MCPcopy Create free account
hub / github.com/comaps/comaps / TestIsAllFacilitiesInState

Function TestIsAllFacilitiesInState

libs/map/map_tests/power_manager_tests.cpp:41–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39};
40
41void TestIsAllFacilitiesInState(PowerManager const & manager, bool state)
42{
43 auto const count = static_cast<size_t>(Facility::Count);
44 for (size_t i = 0; i < count; ++i)
45 TEST_EQUAL(manager.IsFacilityEnabled(static_cast<Facility>(i)), state, ());
46}
47
48void TestAllFacilitiesEnabledExcept(PowerManager const & manager, std::vector<Facility> const & disabledFacilities)
49{

Callers 1

UNIT_TESTFunction · 0.85

Calls 1

IsFacilityEnabledMethod · 0.80

Tested by

no test coverage detected