Skip to content

Commit e244f96

Browse files
committed
fix clint
1 parent 0651695 commit e244f96

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

test/transform_test.cc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,14 @@ TEST(TransformFromStringTest, PositiveCases) {
7575
};
7676

7777
const std::vector<Case> cases = {
78-
{"identity", TransformType::kIdentity, std::nullopt},
79-
{"year", TransformType::kYear, std::nullopt},
80-
{"month", TransformType::kMonth, std::nullopt},
81-
{"day", TransformType::kDay, std::nullopt},
82-
{"hour", TransformType::kHour, std::nullopt},
83-
{"void", TransformType::kVoid, std::nullopt},
84-
{"bucket[16]", TransformType::kBucket, 16},
85-
{"truncate[32]", TransformType::kTruncate, 32},
78+
{.str = "identity", .type = TransformType::kIdentity, .param = std::nullopt},
79+
{.str = "year", .type = TransformType::kYear, .param = std::nullopt},
80+
{.str = "month", .type = TransformType::kMonth, .param = std::nullopt},
81+
{.str = "day", .type = TransformType::kDay, .param = std::nullopt},
82+
{.str = "hour", .type = TransformType::kHour, .param = std::nullopt},
83+
{.str = "void", .type = TransformType::kVoid, .param = std::nullopt},
84+
{.str = "bucket[16]", .type = TransformType::kBucket, .param = 16},
85+
{.str = "truncate[32]", .type = TransformType::kTruncate, .param = 32},
8686
};
8787
for (const auto& c : cases) {
8888
auto result = TransformFromString(c.str);

0 commit comments

Comments
 (0)