@@ -69,42 +69,42 @@ TEST(ConfigTest, BasicOperations) {
6969 TestConfig config;
7070
7171 // Test default values
72- ASSERT_EQ (config.get (TestConfig::STRING_CONFIG), std::string (" default_value" ));
73- ASSERT_EQ (config.get (TestConfig::INT_CONFIG), 25 );
74- ASSERT_EQ (config.get (TestConfig::BOOL_CONFIG), false );
75- ASSERT_EQ (config.get (TestConfig::ENUM_CONFIG), TestEnum::VALUE1);
76- ASSERT_EQ (config.get (TestConfig::DOUBLE_CONFIG), 3.14 );
72+ ASSERT_EQ (config.Get (TestConfig::STRING_CONFIG), std::string (" default_value" ));
73+ ASSERT_EQ (config.Get (TestConfig::INT_CONFIG), 25 );
74+ ASSERT_EQ (config.Get (TestConfig::BOOL_CONFIG), false );
75+ ASSERT_EQ (config.Get (TestConfig::ENUM_CONFIG), TestEnum::VALUE1);
76+ ASSERT_EQ (config.Get (TestConfig::DOUBLE_CONFIG), 3.14 );
7777
7878 // Test setting values
79- config.set (TestConfig::STRING_CONFIG, std::string (" new_value" ));
80- config.set (TestConfig::INT_CONFIG, 100 );
81- config.set (TestConfig::BOOL_CONFIG, true );
82- config.set (TestConfig::ENUM_CONFIG, TestEnum::VALUE2);
83- config.set (TestConfig::DOUBLE_CONFIG, 2.99 );
79+ config.Set (TestConfig::STRING_CONFIG, std::string (" new_value" ));
80+ config.Set (TestConfig::INT_CONFIG, 100 );
81+ config.Set (TestConfig::BOOL_CONFIG, true );
82+ config.Set (TestConfig::ENUM_CONFIG, TestEnum::VALUE2);
83+ config.Set (TestConfig::DOUBLE_CONFIG, 2.99 );
8484
85- ASSERT_EQ (config.get (TestConfig::STRING_CONFIG), " new_value" );
86- ASSERT_EQ (config.get (TestConfig::INT_CONFIG), 100 );
87- ASSERT_EQ (config.get (TestConfig::BOOL_CONFIG), true );
88- ASSERT_EQ (config.get (TestConfig::ENUM_CONFIG), TestEnum::VALUE2);
89- ASSERT_EQ (config.get (TestConfig::DOUBLE_CONFIG), 2.99 );
85+ ASSERT_EQ (config.Get (TestConfig::STRING_CONFIG), " new_value" );
86+ ASSERT_EQ (config.Get (TestConfig::INT_CONFIG), 100 );
87+ ASSERT_EQ (config.Get (TestConfig::BOOL_CONFIG), true );
88+ ASSERT_EQ (config.Get (TestConfig::ENUM_CONFIG), TestEnum::VALUE2);
89+ ASSERT_EQ (config.Get (TestConfig::DOUBLE_CONFIG), 2.99 );
9090
9191 // Test unsetting a value
92- config.unset (TestConfig::INT_CONFIG);
93- config.unset (TestConfig::ENUM_CONFIG);
94- config.unset (TestConfig::DOUBLE_CONFIG);
95- ASSERT_EQ (config.get (TestConfig::INT_CONFIG), 25 );
96- ASSERT_EQ (config.get (TestConfig::STRING_CONFIG), " new_value" );
97- ASSERT_EQ (config.get (TestConfig::BOOL_CONFIG), true );
98- ASSERT_EQ (config.get (TestConfig::ENUM_CONFIG), TestEnum::VALUE1);
99- ASSERT_EQ (config.get (TestConfig::DOUBLE_CONFIG), 3.14 );
92+ config.Unset (TestConfig::INT_CONFIG);
93+ config.Unset (TestConfig::ENUM_CONFIG);
94+ config.Unset (TestConfig::DOUBLE_CONFIG);
95+ ASSERT_EQ (config.Get (TestConfig::INT_CONFIG), 25 );
96+ ASSERT_EQ (config.Get (TestConfig::STRING_CONFIG), " new_value" );
97+ ASSERT_EQ (config.Get (TestConfig::BOOL_CONFIG), true );
98+ ASSERT_EQ (config.Get (TestConfig::ENUM_CONFIG), TestEnum::VALUE1);
99+ ASSERT_EQ (config.Get (TestConfig::DOUBLE_CONFIG), 3.14 );
100100
101101 // Test resetting all values
102- config.reset ();
103- ASSERT_EQ (config.get (TestConfig::STRING_CONFIG), " default_value" );
104- ASSERT_EQ (config.get (TestConfig::INT_CONFIG), 25 );
105- ASSERT_EQ (config.get (TestConfig::BOOL_CONFIG), false );
106- ASSERT_EQ (config.get (TestConfig::ENUM_CONFIG), TestEnum::VALUE1);
107- ASSERT_EQ (config.get (TestConfig::DOUBLE_CONFIG), 3.14 );
102+ config.Reset ();
103+ ASSERT_EQ (config.Get (TestConfig::STRING_CONFIG), " default_value" );
104+ ASSERT_EQ (config.Get (TestConfig::INT_CONFIG), 25 );
105+ ASSERT_EQ (config.Get (TestConfig::BOOL_CONFIG), false );
106+ ASSERT_EQ (config.Get (TestConfig::ENUM_CONFIG), TestEnum::VALUE1);
107+ ASSERT_EQ (config.Get (TestConfig::DOUBLE_CONFIG), 3.14 );
108108}
109109
110110} // namespace iceberg
0 commit comments