MCPcopy Create free account
hub / github.com/Exiv2/exiv2 / TEST

Function TEST

unitTests/test_ImageFactory.cpp:19–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17using namespace Exiv2;
18
19TEST(TheImageFactory, createsInstancesForFewSupportedTypesInMemory) {
20 // Note that the constructor of these Image classes take an 'create' argument
21 EXPECT_NO_THROW(ImageFactory::create(ImageType::jp2));
22 EXPECT_NO_THROW(ImageFactory::create(ImageType::jpeg));
23 EXPECT_NO_THROW(ImageFactory::create(ImageType::exv));
24 EXPECT_NO_THROW(ImageFactory::create(ImageType::pgf));
25#ifdef EXV_HAVE_LIBZ
26 EXPECT_NO_THROW(ImageFactory::create(ImageType::png));
27#endif
28}
29
30TEST(TheImageFactory, cannotCreateInstancesForMostTypesInMemory) {
31 // Note that the constructor of these Image classes does not take an 'create' argument

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected