MCPcopy Create free account
hub / github.com/CalcProgrammer1/OpenRGB / TEST

Function TEST

dependencies/hueplusplus-1.0.0/test/test_Scene.cpp:33–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31using namespace testing;
32
33TEST(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
40TEST(LightState, Brightness)
41{

Callers

nothing calls this directly

Calls 15

LightStateClass · 0.85
LightStateBuilderClass · 0.85
CreateSceneClass · 0.85
hasBrightnessMethod · 0.80
hasHueSatMethod · 0.80
getHueSatMethod · 0.80
hasXYMethod · 0.80
getXYMethod · 0.80
hasCtMethod · 0.80
getCtMethod · 0.80
hasEffectMethod · 0.80
getColorloopMethod · 0.80

Tested by

no test coverage detected