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

Function unittest

libraries/GST/test/unit_test_001.cpp:53–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51
52
53unittest(test_constructor)
54{
55 GST gst;
56
57 // default 0;
58 assertEqualFloat(gst.getTruePositive() , 0, 0.001);
59 assertEqualFloat(gst.getTrueNegative() , 0, 0.001);
60 assertEqualFloat(gst.getFalsePositive() , 0, 0.001);
61 assertEqualFloat(gst.getFalseNegative() , 0, 0.001);
62 assertEqualFloat(gst.getTotal() , 0, 0.001);
63 assertEqualFloat(gst.getActualPositive(), 0, 0.001);
64 assertEqualFloat(gst.getActualNegative(), 0, 0.001);
65 assertEqualFloat(gst.getTestedPositive(), 0, 0.001);
66 assertEqualFloat(gst.getTestedNegative(), 0, 0.001);
67}
68
69
70unittest(test_add)

Callers

nothing calls this directly

Calls 15

getTruePositiveMethod · 0.80
getTrueNegativeMethod · 0.80
getFalsePositiveMethod · 0.80
getFalseNegativeMethod · 0.80
getTotalMethod · 0.80
getActualPositiveMethod · 0.80
getActualNegativeMethod · 0.80
getTestedPositiveMethod · 0.80
getTestedNegativeMethod · 0.80
setTruePositiveMethod · 0.80
setTrueNegativeMethod · 0.80
setFalsePositiveMethod · 0.80

Tested by

no test coverage detected