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

Function TEST_F

tests/unit/sys/test_options_netcdf.cxx:29–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27};
28
29TEST_F(OptionsNetCDFTest, ReadWriteInt) {
30 {
31 Options options;
32 options["test"] = 42;
33
34 // Write the file
35 OptionsIO::create(filename)->write(options);
36 }
37
38 // Read again
39 Options data = OptionsIO::create(filename)->read();
40
41 EXPECT_EQ(data["test"], 42);
42}
43
44TEST_F(OptionsNetCDFTest, ReadWriteString) {
45 {

Callers

nothing calls this directly

Calls 10

as<Field2D>Method · 0.80
as<Field3D>Method · 0.80
as<int>Method · 0.80
as<BoutReal>Method · 0.80
getMeshMethod · 0.80
toStringFunction · 0.50
writeMethod · 0.45
readMethod · 0.45
verifyTimestepsMethod · 0.45
isSetMethod · 0.45

Tested by

no test coverage detected