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

Function unittest

libraries/MCP_DAC/test/unit_test_001.cpp:41–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39
40
41unittest(test_constructor)
42{
43 MCP4921 MCP;
44
45 fprintf(stderr, "test default values\n");
46 assertEqual(4095, MCP.maxValue());
47 assertEqual(0, MCP.lastValue());
48 assertEqual(1, MCP.channels());
49
50}
51
52
53unittest(test_gain)

Callers

nothing calls this directly

Calls 11

isActiveMethod · 0.80
getBufferedModeMethod · 0.80
setBufferedModeMethod · 0.80
maxValueMethod · 0.45
lastValueMethod · 0.45
channelsMethod · 0.45
getGainMethod · 0.45
setGainMethod · 0.45
setSPIspeedMethod · 0.45
getSPIspeedMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected