QGIS API Documentation  2.99.0-Master (37c43df)
Public Member Functions | List of all members
QgsRasterChecker Class Reference

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

#include <qgsrasterchecker.h>

Public Member Functions

 QgsRasterChecker ()
 
 ~QgsRasterChecker ()
 Destructor. More...
 
QString report ()
 
bool runTest (const QString &theVerifiedKey, QString theVerifiedUri, const QString &theExpectedKey, QString theExpectedUri)
 Test using renderer to generate the image to be compared. More...
 

Detailed Description

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

Definition at line 28 of file qgsrasterchecker.h.

Constructor & Destructor Documentation

§ QgsRasterChecker()

QgsRasterChecker::QgsRasterChecker ( )

Definition at line 31 of file qgsrasterchecker.cpp.

§ ~QgsRasterChecker()

QgsRasterChecker::~QgsRasterChecker ( )
inline

Destructor.

Definition at line 35 of file qgsrasterchecker.h.

Member Function Documentation

§ report()

QString QgsRasterChecker::report ( )
inline

Definition at line 37 of file qgsrasterchecker.h.

§ runTest()

bool QgsRasterChecker::runTest ( const QString &  theVerifiedKey,
QString  theVerifiedUri,
const QString &  theExpectedKey,
QString  theExpectedUri 
)

Test using renderer to generate the image to be compared.

Parameters
theVerifiedKeyverified provider key
theVerifiedUriURI of the raster to be verified
theExpectedKeyexpected provider key
theExpectedUriURI of the expected (control) raster

Definition at line 41 of file qgsrasterchecker.cpp.


The documentation for this class was generated from the following files: