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

Function makeRatio

unittests/catch.hpp:11722–11725  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11720};
11721
11722std::size_t makeRatio(std::size_t number, std::size_t total) {
11723 std::size_t ratio = total > 0 ? CATCH_CONFIG_CONSOLE_WIDTH * number / total : 0;
11724 return (ratio == 0 && number > 0) ? 1 : ratio;
11725}
11726
11727std::size_t& findMax(std::size_t& i, std::size_t& j, std::size_t& k) {
11728 if (i > j && i > k)

Callers 1

printTotalsDividerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected