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

Function unittest

libraries/AnalogPin/test/unit_test_001.cpp:39–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37
38
39unittest(test_constructor)
40{
41 AnalogPin AP(0); // A0 not supported
42
43 assertEqual(7, AP.getPrescaler());
44 assertEqual(0, AP.getSmoothWeight());
45 assertEqual(0, AP.getNoiseThreshold());
46 assertEqual(0, AP.read());
47 assertEqual(0, AP.readSmoothed());
48 assertEqual(0, AP.readLast());
49 assertEqual(0, AP.readPrevious());
50}
51
52
53unittest(test_prescaler)

Callers

nothing calls this directly

Calls 10

getPrescalerMethod · 0.80
getSmoothWeightMethod · 0.80
getNoiseThresholdMethod · 0.80
readSmoothedMethod · 0.80
readLastMethod · 0.80
readPreviousMethod · 0.80
setPrescalerMethod · 0.80
setNoiseThresholdMethod · 0.80
setSmoothWeightMethod · 0.80
readMethod · 0.45

Tested by

no test coverage detected