GCC Code Coverage Report


Directory: ./
Date: 2025-09-08 17:09:06
Exec Total Coverage
Lines: 428 440 97.3%
Functions: 53 56 94.6%
Branches: 324 349 92.8%

Function (File:Line) Call count Line coverage Branch coverage Condition coverage Block coverage
testReadPng() (TESTS/TEST_READ_PNG/main.cpp:21)called 1 time100.0%100.0%-%74.8%
check_is_png(PPath const&) (src/check_png.cpp:16)called 3 times77.8%77.8%-%85.7%
testWritePng() (TESTS/TEST_WRITE_PNG/main.cpp:12)called 1 time100.0%100.0%-%75.9%
getColorValue(unsigned char&, unsigned char&, unsigned char&, unsigned char&, PColorValue const&) (src/PColorMap.cpp:62)called 307200 times100.0%-%-%100.0%
testBasePImage() (TESTS/TEST_READ_PNG/main.cpp:69)called 1 time100.0%100.0%-%80.0%
checkConstImage(PImagePng const&) (TESTS/TEST_READ_PNG/main.cpp:13)called 1 time100.0%-%-%100.0%
createColorValue(float, PString const&) (src/PColorMap.cpp:15)called 25 times100.0%81.2%-%70.6%
createColorValue(float, unsigned char, unsigned char, unsigned char, unsigned char) (src/PColorMap.cpp:45)called 27 times100.0%-%-%100.0%
testBaseColorMap() (TESTS/TEST_COLOR_MAP/main.cpp:150)called 1 time100.0%100.0%-%53.4%
testWriteColorPng(PPath const&, unsigned char, unsigned char, unsigned char) (TESTS/TEST_FILL/main.cpp:12)called 5 times100.0%100.0%-%80.0%
testWriteColorPng(PPath const&, unsigned char, unsigned char, unsigned char) (TESTS/TEST_SET_COLOR/main.cpp:12)called 5 times100.0%100.0%-%87.5%
testWriteColorMapPng() (TESTS/TEST_COLOR_MAP/main.cpp:12)called 1 time100.0%100.0%-%58.8%
testWriteColorMapPng2() (TESTS/TEST_COLOR_MAP/main.cpp:47)called 1 time100.0%100.0%-%60.3%
testWriteColorMapPng3() (TESTS/TEST_COLOR_MAP/main.cpp:82)called 1 time100.0%100.0%-%65.9%
testWriteColorMapPng4() (TESTS/TEST_COLOR_MAP/main.cpp:112)called 1 time100.0%92.9%-%62.7%
phoenix_interpolateColor(PColorValue&, PColorValue const&, PColorValue const&, float) (src/PColorMap.cpp:75)called 1072800 times100.0%-%-%100.0%
phoenix_interpolateColor(PColorValue const&, PColorValue const&, float) (src/PColorMap.cpp:90)called 307200 times100.0%100.0%-%100.0%
PColorMap::copyPColorMap(PColorMap const&) (src/PColorMap.cpp:204)called 2 times100.0%-%-%100.0%
PColorMap::initialisationPColorMap() (src/PColorMap.cpp:209)called 5 times100.0%-%-%100.0%
PColorMap::addColor(float, PString const&) (src/PColorMap.cpp:126)called 23 times100.0%100.0%-%100.0%
PColorMap::addColor(float, unsigned char, unsigned char, unsigned char, unsigned char) (src/PColorMap.cpp:138)called 2 times100.0%100.0%-%100.0%
PColorMap::PColorMap(PColorMap const&) (src/PColorMap.cpp:104)called 1 time100.0%100.0%-%80.0%
PColorMap::PColorMap() (src/PColorMap.cpp:97)called 5 times100.0%100.0%-%80.0%
PColorMap::~PColorMap() (src/PColorMap.cpp:109)not called100.0%-%-%0.0%
PColorMap::~PColorMap() (src/PColorMap.cpp:109)called 6 times100.0%-%-%100.0%
PColorMap::operator=(PColorMap const&) (src/PColorMap.cpp:117)called 1 time100.0%-%-%100.0%
PImagePng::createImage(unsigned long, unsigned long, PImagePng::ColorType) (src/PImagePng.cpp:44)called 18 times100.0%70.0%-%85.7%
PImagePng::copyPImagePng(PImagePng const&) (src/PImagePng.cpp:232)called 2 times100.0%-%-%100.0%
PImagePng::initialisationPImagePng() (src/PImagePng.cpp:238)called 19 times100.0%-%-%100.0%
PImagePng::fill(unsigned char, unsigned char, unsigned char, unsigned char) (src/PImagePng.cpp:136)called 9 times100.0%100.0%-%100.0%
PImagePng::read(PPath const&) (src/PImagePng.cpp:74)called 4 times73.7%60.0%-%73.0%
PImagePng::clear() (src/PImagePng.cpp:122)called 19 times100.0%100.0%-%100.0%
PImagePng::write(PPath const&) (src/PImagePng.cpp:112)called 15 times80.0%50.0%-%76.9%
PImagePng::getData() (src/PImagePng.cpp:222)called 1 time100.0%-%-%100.0%
PImagePng::setColor(unsigned long, unsigned long, unsigned char, unsigned char, unsigned char) (src/PImagePng.cpp:151)called 4608000 times100.0%-%-%100.0%
PImagePng::setColor(unsigned long, unsigned long, unsigned char, unsigned char, unsigned char, unsigned char) (src/PImagePng.cpp:164)called 5529600 times100.0%100.0%-%100.0%
void PImagePng::setColor<float>(float const*, unsigned long, unsigned long, PColorMap const&) (src/PImagePng_impl.h:20)called 1 time100.0%100.0%-%100.0%
PImagePng::PImagePng(PImagePng const&) (src/PImagePng.cpp:19)called 1 time100.0%-%-%100.0%
PImagePng::PImagePng() (src/PImagePng.cpp:12)called 18 times100.0%-%-%100.0%
PImagePng::~PImagePng() (src/PImagePng.cpp:25)not called100.0%-%-%0.0%
PImagePng::~PImagePng() (src/PImagePng.cpp:25)called 19 times100.0%-%-%100.0%
PImagePng::operator=(PImagePng const&) (src/PImagePng.cpp:33)called 1 time100.0%-%-%100.0%
PColorMap::interpolate(PColorValue&, float) const (src/PColorMap.cpp:177)called 921600 times100.0%94.1%-%97.1%
PColorMap::interpolate(unsigned char&, unsigned char&, unsigned char&, unsigned char&, float) const (src/PColorMap.cpp:164)called 614400 times100.0%100.0%-%100.0%
PColorMap::interpolate(unsigned char&, unsigned char&, unsigned char&, float) const (src/PColorMap.cpp:149)called 307200 times100.0%100.0%-%100.0%
PImagePng::getNbBytePerPixel() const (src/PImagePng.cpp:227)called 8 times100.0%-%-%100.0%
PImagePng::getData() const (src/PImagePng.cpp:217)called 1 time100.0%-%-%100.0%
PImagePng::getColor(unsigned long, unsigned long, unsigned char&, unsigned char&, unsigned char&) const (src/PImagePng.cpp:181)not called0.0%0.0%-%0.0%
PImagePng::getColor(unsigned long, unsigned long, unsigned char&, unsigned char&, unsigned char&, unsigned char&) const (src/PImagePng.cpp:194)called 2 times100.0%50.0%-%100.0%
PImagePng::getWidth() const (src/PImagePng.cpp:207)called 11 times100.0%-%-%100.0%
PImagePng::getHeight() const (src/PImagePng.cpp:212)called 11 times100.0%-%-%100.0%
main (TESTS/TEST_COLOR_MAP/main.cpp:169)called 1 time100.0%-%-%100.0%
main (TESTS/TEST_FILL/main.cpp:24)called 1 time100.0%100.0%-%49.1%
main (TESTS/TEST_READ_PNG/main.cpp:80)called 1 time100.0%-%-%100.0%
main (TESTS/TEST_SET_COLOR/main.cpp:29)called 1 time100.0%100.0%-%49.1%
main (TESTS/TEST_WRITE_PNG/main.cpp:32)called 1 time100.0%-%-%100.0%