MCPcopy Create free account
hub / github.com/boutproject/BOUT-dev / TEST_F

Function TEST_F

tests/unit/sys/test_options.cxx:22–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20};
21
22TEST_F(OptionsTest, IsSet) {
23 Options options;
24
25 ASSERT_FALSE(options.isSet("int_key"));
26
27 options.set("int_key", 42, "code");
28
29 ASSERT_TRUE(options.isSet("int_key"));
30}
31
32TEST_F(OptionsTest, IsSetDefault) {
33 Options options;

Callers

nothing calls this directly

Calls 15

IsSubStringFunction · 0.85
checkForUnusedOptionsFunction · 0.85
OptionsClass · 0.85
isSectionMethod · 0.80
as<int>Method · 0.80
enableMethod · 0.80
printUnusedMethod · 0.80
copyMethod · 0.80
as<bool>Method · 0.80
as<BoutReal>Method · 0.80
setConditionallyUsedMethod · 0.80
getUnusedMethod · 0.80

Tested by

no test coverage detected