| 595 | } |
| 596 | |
| 597 | void TestInstance::LogMatch(const char* prefix, Engine e, |
| 598 | const StringPiece& text, const StringPiece& context, |
| 599 | Prog::Anchor anchor) { |
| 600 | LOG(INFO) << prefix |
| 601 | << EngineName(e) |
| 602 | << " regexp " |
| 603 | << CEscape(regexp_str_) |
| 604 | << " " |
| 605 | << CEscape(regexp_->ToString()) |
| 606 | << " text " |
| 607 | << CEscape(text) |
| 608 | << " (" |
| 609 | << text.begin() - context.begin() |
| 610 | << "," |
| 611 | << text.end() - context.begin() |
| 612 | << ") of context " |
| 613 | << CEscape(context) |
| 614 | << " (" << FormatKind(kind_) |
| 615 | << ", " << FormatAnchor(anchor) |
| 616 | << ", " << FormatMode(flags_) |
| 617 | << ")"; |
| 618 | } |
| 619 | |
| 620 | static Prog::MatchKind kinds[] = { |
| 621 | Prog::kFirstMatch, |
nothing calls this directly
no test coverage detected