MCPcopy Create free account
hub / github.com/bbc/audiowaveform / compareImageFiles

Function compareImageFiles

test/OptionHandlerTest.cpp:143–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141//------------------------------------------------------------------------------
142
143static void compareImageFiles(
144 const boost::filesystem::path& test_filename,
145 const boost::filesystem::path& ref_filename)
146{
147 gdImagePtr test_image = openImageFile(test_filename);
148 ASSERT_THAT(test_image, NotNull());
149
150 gdImagePtr ref_image = openImageFile(ref_filename);
151 ASSERT_THAT(ref_image, NotNull());
152
153 compareImages(test_image, ref_image);
154
155 gdImageDestroy(test_image);
156 gdImageDestroy(ref_image);
157}
158
159//------------------------------------------------------------------------------
160

Callers 1

runTestFunction · 0.85

Calls 2

openImageFileFunction · 0.85
compareImagesFunction · 0.85

Tested by

no test coverage detected