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

Function unittest

libraries/I2C_ASDX/test/unit_test_001.cpp:50–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48
49
50unittest(test_constructor)
51{
52 I2C_ASDX sensor(0x58, 100);
53
54 assertEqual(I2C_ASDX_INIT, sensor.state());
55
56 assertTrue(sensor.begin());
57 assertTrue(sensor.isConnected()); // incorrect, keep build happy
58
59 fprintf(stderr, "test state\n");
60 assertEqual(0, sensor.errorCount());
61 assertEqual(0, sensor.lastRead());
62 assertEqual(I2C_ASDX_OK, sensor.state());
63}
64
65
66unittest(test_constants)

Callers

nothing calls this directly

Calls 15

errorCountMethod · 0.80
stateMethod · 0.45
beginMethod · 0.45
isConnectedMethod · 0.45
lastReadMethod · 0.45
getPressureMethod · 0.45
getMilliBarMethod · 0.45
getBarMethod · 0.45
getPSIMethod · 0.45
getATMMethod · 0.45
getDynesMethod · 0.45
getInchHgMethod · 0.45

Tested by

no test coverage detected