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

Function TEST_F

dependencies/hueplusplus-1.0.0/test/test_SensorImpls.cpp:258–270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256}
257
258TEST_F(DaylightSensorTest, Coordinates)
259{
260 const std::string lat = "000.0000N";
261 const std::string lon = "000.0000E";
262 EXPECT_CALL(*handler,
263 PUTJson("/api/" + getBridgeUsername() + "/sensors/1/config", nlohmann::json({{"lat", lat}, {"long", lon}}),
264 getBridgeIp(), getBridgePort()))
265 .WillOnce(Return(nlohmann::json {
266 {{"success", {{"/sensors/1/config/lat", lat}}}}, {{"success", {{"/sensors/1/config/long", lon}}}}}));
267 getSensor().setCoordinates(lat, lon);
268 state["config"]["configured"] = true;
269 EXPECT_TRUE(getSensor().isConfigured());
270}
271
272TEST_F(DaylightSensorTest, SunriseOffset)
273{

Callers

nothing calls this directly

Calls 15

getBridgeUsernameFunction · 0.85
getBridgeIpFunction · 0.85
getBridgePortFunction · 0.85
setCoordinatesMethod · 0.80
isConfiguredMethod · 0.80
getSunriseOffsetMethod · 0.80
setSunriseOffsetMethod · 0.80
getSunsetOffsetMethod · 0.80
setSunsetOffsetMethod · 0.80
getSensitivityMethod · 0.80
getMaxSensitivityMethod · 0.80
setSensitivityMethod · 0.80

Tested by

no test coverage detected