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

Function TEST

src/doc/context_tests.cpp:26–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24} // namespace doc
25
26TEST(Context, AddDocument)
27{
28 Context ctx;
29 Document* doc = ctx.documents().add(32, 28);
30 ASSERT_TRUE(doc != NULL);
31
32 EXPECT_EQ(32, doc->width());
33 EXPECT_EQ(28, doc->height());
34 EXPECT_EQ(ColorMode::RGB, doc->colorMode()); // Default color mode is RGB
35}
36
37TEST(Context, DeleteDocuments)
38{

Callers

nothing calls this directly

Calls 9

colorModeMethod · 0.80
addMethod · 0.45
widthMethod · 0.45
heightMethod · 0.45
sizeMethod · 0.45
closeMethod · 0.45
setContextMethod · 0.45
contextMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected