| 31 | using namespace testing; |
| 32 | |
| 33 | TEST(LightState, on) |
| 34 | { |
| 35 | EXPECT_FALSE(LightState(nlohmann::json::object()).isOn()); |
| 36 | EXPECT_TRUE(LightState(nlohmann::json {{"on", true}}).isOn()); |
| 37 | EXPECT_FALSE(LightState(nlohmann::json {{"on", false}}).isOn()); |
| 38 | } |
| 39 | |
| 40 | TEST(LightState, Brightness) |
| 41 | { |
nothing calls this directly
no test coverage detected