MCPcopy Create free account
hub / github.com/OpenVPN/openvpn3-linux / TEST_F

Function TEST_F

src/tests/unit/configfileparser.cpp:175–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173
174
175TEST_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
190TEST_F(ConfigurationFile, setval_string)

Callers

nothing calls this directly

Calls 15

get_json_member_namesFunction · 0.85
IsPresentMethod · 0.80
SetValueMethod · 0.80
GenerateMethod · 0.80
LoadMethod · 0.80
SaveMethod · 0.80
GetOptionsMethod · 0.80
sizeMethod · 0.80
UnsetOptionMethod · 0.80
statClass · 0.70
emptyMethod · 0.45

Tested by

no test coverage detected