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

Function TEST

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

Source from the content-addressed store, hash-verified

28using hueplusplus::Action;
29
30TEST(Action, Constructor)
31{
32 const std::string address = "/api/abcd/test";
33 const nlohmann::json body = {{"test", "value"}};
34 const nlohmann::json json = {{"address", address}, {"method", "PUT"}, {"body", body}};
35 Action command(json);
36
37 EXPECT_EQ(address, command.getAddress());
38 EXPECT_EQ(Action::Method::put, command.getMethod());
39 EXPECT_EQ(body, command.getBody());
40 EXPECT_EQ(json, command.toJson());
41}
42
43TEST(Action, getMethod)
44{

Callers

nothing calls this directly

Calls 4

ActionClass · 0.85
getMethodMethod · 0.80
getAddressMethod · 0.45
toJsonMethod · 0.45

Tested by

no test coverage detected