MCPcopy Create free account
hub / github.com/carbonengine/trinity / TEST

Function TEST

trinityal/tests/BitmapDimensions.cpp:43–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43TEST( BitmapDimensions, InitialSizeIsZero )
44{
45 Tr2BitmapDimensions dim;
46 EXPECT_EQ( 0, dim.GetWidth() );
47 EXPECT_EQ( 0, dim.GetHeight() );
48 EXPECT_EQ( 0, dim.GetDepth() );
49 EXPECT_EQ( 0, dim.GetTrueMipCount() );
50 EXPECT_EQ( 0, dim.GetMipCount() );
51 EXPECT_EQ( PIXEL_FORMAT_UNKNOWN, dim.GetFormat() );
52 EXPECT_EQ( TEX_TYPE_INVALID, dim.GetType() );
53}
54
55TEST( BitmapDimensions, ReportsCorrect2DSizes )
56{

Callers

nothing calls this directly

Calls 14

GetTrueMipCountMethod · 0.80
GetMipSizeMethod · 0.80
GetWidthMethod · 0.45
GetHeightMethod · 0.45
GetDepthMethod · 0.45
GetMipCountMethod · 0.45
GetFormatMethod · 0.45
GetTypeMethod · 0.45
SetTypeMethod · 0.45
SetWidthMethod · 0.45
SetHeightMethod · 0.45
SetMipCountMethod · 0.45

Tested by

no test coverage detected