Skip to content

Commit ca71f99

Browse files
committed
style: clang-format.
Also add Testing/, which is a ctest-produced directory, to .gitignore.
1 parent fb132ec commit ca71f99

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,4 @@ CMakeUserPresets.json
4242

4343
# Lock files created by bzlmod. We do not want to accidentally commit these.
4444
MODULE.bazel.lock
45+
Testing/

column_family.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ void ColumnRow::ApplyGCRuleMaxNumVersions(std::size_t n) {
242242
}
243243

244244
StatusOr<bool> TimestampIsOlderThan(std::chrono::milliseconds timestamp,
245-
protobuf::Duration const& max_age) {
245+
protobuf::Duration const& max_age) {
246246
std::chrono::milliseconds max_age_ms(
247247
protobuf::util::TimeUtil::DurationToMilliseconds(max_age));
248248
// The proto definitions require max_age to be at least 1ms.

column_family.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ class ColumnFamily {
427427

428428
Status RunGC();
429429

430-
void SetGCRule(const google::bigtable::admin::v2::GcRule& gc_rule) {
430+
void SetGCRule(google::bigtable::admin::v2::GcRule const& gc_rule) {
431431
gc_rule_ = gc_rule;
432432
}
433433

gc_test.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -596,15 +596,14 @@ TEST_F(GCTest, MaxAgeLessThan1msDurationReturnsErrorStatus) {
596596
google::bigtable::admin::v2::GcRule gc_rule;
597597
auto* max_age = gc_rule.mutable_max_age();
598598
max_age->set_seconds(0);
599-
max_age->set_nanos(999000); // 0.999ms
599+
max_age->set_nanos(999000); // 0.999ms
600600
cf_->SetGCRule(gc_rule);
601601

602602
auto status = cf_->RunGC();
603603
EXPECT_FALSE(status.ok());
604604
EXPECT_EQ(11, CountTotalCells());
605605
}
606606

607-
608607
TEST_F(GCTest, MaxAgeNegativeDurationReturnsError) {
609608
AddTestData();
610609

0 commit comments

Comments
 (0)