Skip to content

Commit d854431

Browse files
committed
chore: use absl substitute in new test
1 parent 67a53d5 commit d854431

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

google/cloud/bigtable/value_test.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2070,8 +2070,9 @@ TEST(Value, TypeAndValuesMatchDepthExceeded) {
20702070
type_text = "int64_type {}";
20712071
value_text = "int_value: 1";
20722072
for (int i = 0; i < 4; ++i) {
2073-
type_text = "struct_type { fields { type { " + type_text + "} } }";
2074-
value_text = "array_value { values { " + value_text + "} }";
2073+
type_text =
2074+
absl::Substitute("struct_type { fields { type { $0 } } }", type_text);
2075+
value_text = absl::Substitute("array_value { values { $0 } }", value_text);
20752076
}
20762077
TestTypeAndValuesMatch(type_text, value_text, Status{});
20772078
}

0 commit comments

Comments
 (0)