MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / makeRatio

Function makeRatio

extlibs/catch/include/catch/catch.hpp:15452–15455  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15450};
15451
15452std::size_t makeRatio(std::size_t number, std::size_t total) {
15453 std::size_t ratio = total > 0 ? CATCH_CONFIG_CONSOLE_WIDTH * number / total : 0;
15454 return (ratio == 0 && number > 0) ? 1 : ratio;
15455}
15456
15457std::size_t& findMax(std::size_t& i, std::size_t& j, std::size_t& k) {
15458 if (i > j && i > k)

Callers 1

printTotalsDividerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected