MCPcopy Create free account
hub / github.com/Cantera/cantera / TEST

Function TEST

test/general/test_containers.cpp:7–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5using namespace Cantera;
6
7TEST(AnyValue, is_copyable) {
8 AnyMap map1, map2;
9 map1["key"] = "1";
10 map2["key"] = "2";
11 AnyValue value1 = map1["key"];
12 AnyValue value2 = map2["key"];
13 value2 = value1;
14 EXPECT_EQ(value1.asString(), "1");
15 EXPECT_EQ(value2.asString(), "1");
16}
17
18TEST(AnyValue, is_moveable) {
19 AnyMap map1, map2;

Callers

nothing calls this directly

Calls 15

hasMapWhereMethod · 0.80
hasKeyMethod · 0.80
keys_strMethod · 0.80
getBoolMethod · 0.80
getIntMethod · 0.80
getDoubleMethod · 0.80
whatMethod · 0.80
setFlowStyleMethod · 0.80
AnyMapClass · 0.50
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected