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

Function unittest

libraries/shiftInSlow/test/unit_test_001.cpp:49–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47
48
49unittest(test_constructor)
50{
51 ShiftInSlow SIS(12, 13);
52
53 assertEqual(0, SIS.lastRead());
54 assertEqual(LSBFIRST, SIS.getBitOrder());
55
56 SIS.setBitOrder(MSBFIRST);
57 assertEqual(MSBFIRST, SIS.getBitOrder());
58}
59
60
61unittest(test_constructor_LSB)

Callers

nothing calls this directly

Calls 6

lastReadMethod · 0.45
getBitOrderMethod · 0.45
setBitOrderMethod · 0.45
setDelayMethod · 0.45
getDelayMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected