Skip to content

Commit 3530a1d

Browse files
committed
fix linter
1 parent 827978c commit 3530a1d

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

test/benchmark_setup_teardown_cb_types_gtest.cc

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ class BenchmarkTest : public testing::Test {
3434
functor_called = 0;
3535

3636
bm = RegisterBenchmark("BM", [](State& st) {
37-
for(auto _ : st) {
38-
}
39-
});
40-
bm->Iterations(1);
41-
}
37+
for (auto _ : st) {
38+
}
39+
});
40+
bm->Iterations(1);
41+
}
4242

4343
void TearDown() override { ClearRegisteredBenchmarks(); }
44-
};
44+
};
4545

4646
// Test that Setup/Teardown can correctly take a lambda expressions
4747
TEST_F(BenchmarkTest, LambdaTestCopy) {
@@ -68,7 +68,9 @@ TEST_F(BenchmarkTest, LambdaTestMove) {
6868
// Test that Setup/Teardown can correctly take std::function
6969
TEST_F(BenchmarkTest, CallbackFunctionCopy) {
7070
callback_function setup_lambda = [this](const State&) { setup_calls++; };
71-
callback_function teardown_lambda = [this](const State&) { teardown_calls++; };
71+
callback_function teardown_lambda = [this](const State&) {
72+
teardown_calls++;
73+
};
7274
bm->Setup(setup_lambda);
7375
bm->Teardown(teardown_lambda);
7476
RunSpecifiedBenchmarks(&null_reporter);

0 commit comments

Comments
 (0)