MCPcopy Create free account
hub / github.com/NVIDIA/DALI / TEST

Function TEST

dali/operators/reader/reader_op_test.cc:468–472  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

466}
467
468TEST(ReaderTestSimple, CheckNumSamples) {
469 ASSERT_EQ(num_samples(1, 10), 10 / 1);
470 ASSERT_EQ(num_samples(2, 10), 10 / 2);
471 ASSERT_EQ(num_samples(3, 10), static_cast<Index>(std::ceil(10 * 1.0 / 3)));
472}
473
474class FileReaderTest : public DALITest {
475 public:

Callers

nothing calls this directly

Calls 2

num_samplesFunction · 0.50
ceilFunction · 0.50

Tested by

no test coverage detected