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

Function unittest

libraries/FastShiftIn/test/unit_test_001.cpp:48–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 6

readLSBFIRSTMethod · 0.80
readMSBFIRSTMethod · 0.80
lastReadMethod · 0.45
getBitOrderMethod · 0.45
setBitOrderMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected