QGIS API Documentation 3.41.0-Master (fda2aa46e9a)
Loading...
Searching...
No Matches
qgstestutils.h
Go to the documentation of this file.
1/***************************************************************************
2 qgstestutils.h
3 ---------------------
4 begin : January 2018
5 copyright : (C) 2018 by Nyall Dawson
7 ***************************************************************************
8 * *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 ***************************************************************************/
15
16#ifndef QGSTESTUTILS_H
17#define QGSTESTUTILS_H
18
19#include "qgis_core.h"
20#include "qgis_sip.h"
21#include "qgsfeaturerequest.h"
22
24
25#ifdef SIP_RUN
26% ModuleHeaderCode
27#include "qgstestutils.h"
28% End
29#endif
30
32
33// Used only for utilities required for the QGIS Python unit tests - not stable or public API
34namespace QgsTestUtils
35{
36
43 CORE_EXPORT bool testProviderIteratorThreadSafety( QgsVectorDataProvider *provider, const QgsFeatureRequest &request = QgsFeatureRequest() );
44
45};
46
48#endif //QGSTESTUTILS_H
This class wraps a request for features to a vector layer (or directly its vector data provider).
This is the base class for vector data providers.