MCPcopy Create free account
hub / github.com/apache/arrow / AssertDurationBetween

Function AssertDurationBetween

cpp/src/arrow/filesystem/test_util.h:118–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116
117template <typename Duration>
118void AssertDurationBetween(Duration d, double min_secs, double max_secs) {
119 auto seconds = std::chrono::duration_cast<std::chrono::duration<double>>(d);
120 ASSERT_GE(seconds.count(), min_secs);
121 ASSERT_LE(seconds.count(), max_secs);
122}
123
124// Generic tests for FileSystem implementations.
125// To use this class, subclass both from it and ::testing::Test,

Callers 4

TestGetFileInfoMethod · 0.85
TestGetFileInfoVectorMethod · 0.85
TYPED_TESTFunction · 0.85

Calls 1

countMethod · 0.45

Tested by

no test coverage detected