mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-11-04 00:04:25 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			33 lines
		
	
	
		
			841 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			841 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
 | 
						|
/** Raster checker for tests in python */
 | 
						|
 | 
						|
/** \ingroup UnitTests
 | 
						|
 * This is a helper class for unit tests that need to
 | 
						|
 * write an image and compare it to an expected result
 | 
						|
 * or render time.
 | 
						|
 */
 | 
						|
class QgsRasterChecker
 | 
						|
{
 | 
						|
%TypeHeaderCode
 | 
						|
#include <qgsrasterchecker.h>
 | 
						|
%End
 | 
						|
  public:
 | 
						|
 | 
						|
    QgsRasterChecker();
 | 
						|
 | 
						|
    //! Destructor
 | 
						|
    ~QgsRasterChecker();
 | 
						|
 | 
						|
    QString report();
 | 
						|
    /**
 | 
						|
     * Test using renderer to generate the image to be compared.
 | 
						|
     * @param theVerifiedKey verified provider key
 | 
						|
     * @param theVerifiedUri URI of the raster to be verified
 | 
						|
     * @param theExpectedKey expected provider key
 | 
						|
     * @param theExpectedUri URI of the expected (control) raster
 | 
						|
     */
 | 
						|
    bool runTest( const QString& theVerifiedKey, QString theVerifiedUri,
 | 
						|
                  const QString& theExpectedKey, QString theExpectedUri );
 | 
						|
};
 | 
						|
 |