QgsRasterChecker class

This is a helper class for unit tests that need to write an image and compare it to an expected result or render time.

Contents

Public functions

auto runTest(const QString& verifiedKey, QString verifiedUri, const QString& expectedKey, QString expectedUri) -> bool
Test using renderer to generate the image to be compared.

Function documentation

bool QgsRasterChecker::runTest(const QString& verifiedKey, QString verifiedUri, const QString& expectedKey, QString expectedUri)

Test using renderer to generate the image to be compared.

Parameters
verifiedKey verified provider key
verifiedUri URI of the raster to be verified
expectedKey expected provider key
expectedUri URI of the expected (control) raster