MCPcopy Create free account
hub / github.com/LuminanceHDR/LuminanceHDR / TEST

Function TEST

test/TestFrameArray2D.cpp:32–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30using namespace pfs;
31
32TEST(TestArray2D, Resize1)
33{
34 Array2Df array(100, 200);
35
36 EXPECT_EQ(array.getCols(), 100);
37 EXPECT_EQ(array.getRows(), 200);
38
39 float* d1 = array.data();
40
41 array.resize(150, 220);
42
43 EXPECT_EQ(array.getCols(), 150);
44 EXPECT_EQ(array.getRows(), 220);
45
46 float* d2 = array.data();
47
48 EXPECT_NE(d1, d2);
49}
50
51TEST(TestArray2D, Resize2)
52{

Callers

nothing calls this directly

Calls 11

SeqIntClass · 0.85
resizeMethod · 0.80
col_beginMethod · 0.80
col_endMethod · 0.80
compareVectorsFunction · 0.70
getColsMethod · 0.45
getRowsMethod · 0.45
dataMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected