MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / Tester

Method Tester

extern/re2/re2/testing/tester.cc:627–637  ·  view source on GitHub ↗

Test all possible match kinds and parse modes.

Source from the content-addressed store, hash-verified

625
626// Test all possible match kinds and parse modes.
627Tester::Tester(const StringPiece& regexp) {
628 error_ = false;
629 for (size_t i = 0; i < arraysize(kinds); i++) {
630 for (size_t j = 0; j < arraysize(parse_modes); j++) {
631 TestInstance* t = new TestInstance(regexp, kinds[i],
632 parse_modes[j].parse_flags);
633 error_ |= t->error();
634 v_.push_back(t);
635 }
636 }
637}
638
639Tester::~Tester() {
640 for (size_t i = 0; i < v_.size(); i++)

Callers

nothing calls this directly

Calls 2

errorMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected