MCPcopy Create free account
hub / github.com/apache/qpid-proton / shouldShowDuration

Function shouldShowDuration

tests/include/catch.hpp:15796–15805  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15794 }
15795
15796 bool shouldShowDuration( IConfig const& config, double duration ) {
15797 if ( config.showDurations() == ShowDurations::Always ) {
15798 return true;
15799 }
15800 if ( config.showDurations() == ShowDurations::Never ) {
15801 return false;
15802 }
15803 const double min = config.minDuration();
15804 return min >= 0 && duration >= min;
15805 }
15806
15807 std::string serializeFilters( std::vector<std::string> const& container ) {
15808 ReusableStringStream oss;

Callers 1

sectionEndedMethod · 0.85

Calls 2

showDurationsMethod · 0.80
minDurationMethod · 0.80

Tested by

no test coverage detected