MCPcopy Create free account
hub / github.com/RobTillaart/Arduino / unittest

Function unittest

libraries/GY521/test/unit_test_001.cpp:43–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41
42
43unittest(test_constructor)
44{
45 GY521 sensor(0x69);
46
47 sensor.begin();
48 assertEqual(GY521_OK, sensor.getError());
49
50 assertTrue(sensor.isConnected()); // incorrect but OK
51}
52
53
54unittest(test_get_set_throttle)

Callers

nothing calls this directly

Calls 15

setThrottleMethod · 0.80
getThrottleMethod · 0.80
setThrottleTimeMethod · 0.80
getThrottleTimeMethod · 0.80
setAccelSensitivityMethod · 0.80
getAccelSensitivityMethod · 0.80
setGyroSensitivityMethod · 0.80
getAccelXMethod · 0.80
getAccelYMethod · 0.80
getAccelZMethod · 0.80
getAngleXMethod · 0.80
getAngleYMethod · 0.80

Tested by

no test coverage detected