@@ -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