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

Function TEST_F

src/energyplus/Test/ErrorFile_GTest.cpp:20–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18using openstudio::energyplus::ErrorFile;
19
20TEST_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
31TEST_F(EnergyPlusFixture, ErrorFile_Warnings) {
32 openstudio::path path = resourcesPath() / openstudio::toPath("energyplus/ErrorFiles/Warnings.err");

Callers

nothing calls this directly

Calls 7

severeErrorsMethod · 0.80
fatalErrorsMethod · 0.80
completedMethod · 0.80
completedSuccessfullyMethod · 0.80
toPathFunction · 0.50
sizeMethod · 0.45
warningsMethod · 0.45

Tested by

no test coverage detected