| 18 | using openstudio::energyplus::ErrorFile; |
| 19 | |
| 20 | TEST_F(EnergyPlusFixture, ErrorFile_NoErrorsNoWarnings) { |
| 21 | openstudio::path path = resourcesPath() / openstudio::toPath("energyplus/ErrorFiles/NoErrorsNoWarnings.err"); |
| 22 | |
| 23 | ErrorFile errorFile(path); |
| 24 | EXPECT_EQ(static_cast<unsigned>(0), errorFile.warnings().size()); |
| 25 | EXPECT_EQ(static_cast<unsigned>(0), errorFile.severeErrors().size()); |
| 26 | EXPECT_EQ(static_cast<unsigned>(0), errorFile.fatalErrors().size()); |
| 27 | EXPECT_TRUE(errorFile.completed()); |
| 28 | EXPECT_TRUE(errorFile.completedSuccessfully()); |
| 29 | } |
| 30 | |
| 31 | TEST_F(EnergyPlusFixture, ErrorFile_Warnings) { |
| 32 | openstudio::path path = resourcesPath() / openstudio::toPath("energyplus/ErrorFiles/Warnings.err"); |
nothing calls this directly
no test coverage detected