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

Function TEST_F

tests/unit/include/bout/test_array.cxx:21–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19};
20
21TEST_F(ArrayTest, ArraySize) {
22 Array<double> a(5);
23
24 ASSERT_FALSE(a.empty());
25 EXPECT_EQ(a.size(), 5);
26 EXPECT_TRUE(a.unique());
27}
28
29TEST_F(ArrayTest, ArrayValues) {
30 Array<double> a(10);

Callers

nothing calls this directly

Calls 3

swapFunction · 0.50
sizeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected