@@ -50,9 +50,7 @@ TEST(FileIoRegistryTest, RegisterAndLoad) {
5050 impl_name,
5151 [](const std::string& /* warehouse*/ ,
5252 const std::unordered_map<std::string, std::string>& /* properties*/ )
53- -> Result<std::shared_ptr<FileIO>> {
54- return std::make_shared<MockFileIO>();
55- });
53+ -> Result<std::shared_ptr<FileIO>> { return std::make_shared<MockFileIO>(); });
5654
5755 auto result = FileIORegistry::Load (impl_name, " /test/warehouse" , {});
5856 ASSERT_THAT (result, IsOk ());
@@ -78,18 +76,14 @@ TEST(FileIoRegistryTest, OverrideExistingRegistration) {
7876 impl_name,
7977 [](const std::string& /* warehouse*/ ,
8078 const std::unordered_map<std::string, std::string>& /* properties*/ )
81- -> Result<std::shared_ptr<FileIO>> {
82- return std::make_shared<MockFileIO>();
83- });
79+ -> Result<std::shared_ptr<FileIO>> { return std::make_shared<MockFileIO>(); });
8480
8581 // Override with a different factory
8682 FileIORegistry::Register (
8783 impl_name,
8884 [](const std::string& /* warehouse*/ ,
8985 const std::unordered_map<std::string, std::string>& /* properties*/ )
90- -> Result<std::shared_ptr<FileIO>> {
91- return std::make_shared<MockFileIO>();
92- });
86+ -> Result<std::shared_ptr<FileIO>> { return std::make_shared<MockFileIO>(); });
9387
9488 // Should still work (the override replaces the original)
9589 auto result = FileIORegistry::Load (impl_name, " /test/warehouse" , {});
@@ -114,7 +108,7 @@ TEST(FileIoRegistryTest, FactoryReceivesWarehouseAndProperties) {
114108 });
115109
116110 std::unordered_map<std::string, std::string> props = {{" key1" , " val1" },
117- {" key2" , " val2" }};
111+ {" key2" , " val2" }};
118112 auto result = FileIORegistry::Load (impl_name, " s3://my-bucket/warehouse" , props);
119113 ASSERT_THAT (result, IsOk ());
120114 EXPECT_EQ (captured_warehouse, " s3://my-bucket/warehouse" );
0 commit comments