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:
parent
a29702c6f7
commit
cd632b2586
@ -712,9 +712,11 @@ enum Skipped
|
||||
#if defined(BENCHMARK_HAS_CXX11)
|
||||
: unsigned
|
||||
#endif
|
||||
{ NotSkipped = 0,
|
||||
{
|
||||
NotSkipped = 0,
|
||||
SkippedWithMessage,
|
||||
SkippedWithError };
|
||||
SkippedWithError
|
||||
};
|
||||
|
||||
} // namespace internal
|
||||
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user