MCPcopy Create free account
hub / github.com/EQEmu/EQEmu / correct

Function correct

tests/cppunit/utils.cpp:41–48  ·  view source on GitHub ↗

Computes the procentage of correct tests.

Source from the content-addressed store, hash-verified

39 // Computes the procentage of correct tests.
40 //
41 int
42 correct(int tests, int errors)
43 {
44 if ((errors == 0) || (tests == 0))
45 return 100;
46
47 return (tests - errors) * 100 / tests;
48 }
49
50} // namespace Test

Callers 4

operator()Method · 0.85
generateMethod · 0.85
finishedMethod · 0.85
suite_endMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected