1
0
mirror of https://github.com/google/benchmark.git synced 2025-04-29 14:30:37 +08:00

feat: added List() NullReporter & chnagedback enum

This commit is contained in:
varshneydevansh 2023-08-12 09:16:12 +05:30
parent a29702c6f7
commit cd632b2586
2 changed files with 6 additions and 2 deletions

View File

@ -712,9 +712,11 @@ enum Skipped
#if defined(BENCHMARK_HAS_CXX11)
: unsigned
#endif
{ NotSkipped = 0,
{
NotSkipped = 0,
SkippedWithMessage,
SkippedWithError };
SkippedWithError
};
} // namespace internal

View File

@ -40,6 +40,8 @@ class NullReporter : public BenchmarkReporter {
public:
bool ReportContext(const Context& /*context*/) override { return true; }
void ReportRuns(const std::vector<Run>& /* report */) override {}
void List(
const std::vector<benchmark::internal::BenchmarkInstance>&) override {}
};
class BenchmarkTest : public testing::Test {