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

Function unittest

libraries/X9C10X/test/unit_test_001.cpp:42–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40
41
42unittest(test_X9C_all)
43{
44 X9C pot;
45 pot.begin(4,5,6);
46 assertTrue(pot.incr());
47 assertTrue(pot.decr());
48 // store() cannot be tested as it calls delay().
49}
50
51
52unittest(test_X9C10X_constructor)

Callers

nothing calls this directly

Calls 11

getMaxOhmMethod · 0.80
getOhmMethod · 0.80
Ohm2PositionMethod · 0.80
beginMethod · 0.45
incrMethod · 0.45
decrMethod · 0.45
getTypeMethod · 0.45
getPositionMethod · 0.45
setPositionMethod · 0.45
storeMethod · 0.45

Tested by

no test coverage detected