| 173 | |
| 174 | |
| 175 | TEST_F(ConfigurationFile, setval_integer) |
| 176 | { |
| 177 | ASSERT_FALSE(testfile->IsPresent("integer-option")) |
| 178 | << "integer-option was unexpectedly present"; |
| 179 | testfile->SetValue("integer-option", "123"); |
| 180 | Json::Value data = testfile->Generate(); |
| 181 | std::string fields_exp{"int_opt:"}; |
| 182 | ASSERT_EQ(get_json_member_names(data), fields_exp) |
| 183 | << "Unexpected JSON members found"; |
| 184 | |
| 185 | ASSERT_TRUE(testfile->IsPresent("integer-option")) |
| 186 | << "integer-option was unexpectedly NOT present"; |
| 187 | } |
| 188 | |
| 189 | |
| 190 | TEST_F(ConfigurationFile, setval_string) |
nothing calls this directly
no test coverage detected