MCPcopy Create free account
hub / github.com/apache/kvrocks / CronTestNumberAndRange

Method CronTestNumberAndRange

tests/cppunit/cron_test.cc:378–383  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

376class CronTestNumberAndRange : public testing::Test {
377 protected:
378 explicit CronTestNumberAndRange() {
379 cron_ = std::make_unique<Cron>();
380 std::vector<std::string> schedule{"*", "1,3,6-10,20", "*", "*", "*"};
381 auto s = cron_->SetScheduleTime(schedule);
382 EXPECT_TRUE(s.IsOK());
383 }
384 ~CronTestNumberAndRange() override = default;
385
386 std::unique_ptr<Cron> cron_;

Callers

nothing calls this directly

Calls 2

SetScheduleTimeMethod · 0.80
IsOKMethod · 0.45

Tested by

no test coverage detected