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

Function TEST

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

Source from the content-addressed store, hash-verified

31using namespace testing;
32
33TEST(Condition, Constructor)
34{
35 const std::string address = "/api/abcd/test";
36 const std::string value = "test value";
37 Condition condition(address, Condition::Operator::eq, value);
38 EXPECT_EQ(address, condition.getAddress());
39 EXPECT_EQ(Condition::Operator::eq, condition.getOperator());
40 EXPECT_EQ(value, condition.getValue());
41}
42
43TEST(Condition, toJson)
44{

Callers

nothing calls this directly

Calls 11

CreateRuleClass · 0.85
ConditionClass · 0.85
ActionClass · 0.85
getOperatorMethod · 0.80
getValueMethod · 0.80
setStatusMethod · 0.80
parseFunction · 0.50
getAddressMethod · 0.45
toJsonMethod · 0.45
getRequestMethod · 0.45
setNameMethod · 0.45

Tested by

no test coverage detected