MCPcopy Create free account
hub / github.com/NatLabRockies/OpenStudio / TEST_F

Function TEST_F

src/model/test/Schedule_GTest.cpp:18–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16using namespace openstudio;
17
18TEST_F(ModelFixture, Schedule_FinalStrictness) {
19 Model model;
20 ScheduleConstant schedule(model);
21 schedule.setValue(-0.1);
22 EXPECT_TRUE(checkOrAssignScheduleTypeLimits("Lights", "Lighting", schedule));
23 ValidityReport report = schedule.validityReport(StrictnessLevel(StrictnessLevel::Final));
24 ASSERT_EQ(0u, report.numErrors());
25 schedule.setValue(0.5);
26 report = schedule.validityReport(StrictnessLevel(StrictnessLevel::Final));
27 EXPECT_EQ(0u, report.numErrors());
28}

Callers

nothing calls this directly

Calls 5

numErrorsMethod · 0.80
StrictnessLevelClass · 0.50
setValueMethod · 0.45
validityReportMethod · 0.45

Tested by

no test coverage detected