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

Function unittest

libraries/SGP30/test/unit_test_001.cpp:51–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49
50
51unittest(test_constructor)
52{
53 SGP30 SGP;
54
55 assertTrue(SGP.begin());
56 assertTrue(SGP.isConnected());
57
58 assertEqual(0x00, SGP.lastMeasurement());
59 assertEqual(0x00, SGP.lastError());
60}
61
62
63unittest(test_constants)

Callers

nothing calls this directly

Calls 14

getTVOCMethod · 0.80
getH2_rawMethod · 0.80
getEthanol_rawMethod · 0.80
getH2Method · 0.80
getEthanolMethod · 0.80
getSrefH2Method · 0.80
setSrefH2Method · 0.80
getSrefEthanolMethod · 0.80
setSrefEthanolMethod · 0.80
beginMethod · 0.45
isConnectedMethod · 0.45
lastMeasurementMethod · 0.45

Tested by

no test coverage detected