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

Function unittest

libraries/INA226/test/unit_test_001.cpp:49–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47
48
49unittest(test_constructor)
50{
51
52 INA226 INA(0x40);
53
54 assertTrue(INA.begin());
55 assertTrue(INA.isConnected());
56 assertEqual(0x40, INA.getAddress());
57
58 assertFalse(INA.isCalibrated());
59}
60
61
62unittest(test_constants)

Callers

nothing calls this directly

Calls 9

setAverageMethod · 0.80
beginMethod · 0.45
isConnectedMethod · 0.45
getAddressMethod · 0.45
isCalibratedMethod · 0.45
setMaxCurrentShuntMethod · 0.45
setModeMethod · 0.45

Tested by

no test coverage detected