File indexing completed on 2025-02-02 04:17:31

0001 /*
0002  *  SPDX-FileCopyrightText: 2008 Cyrille Berger <cberger@cberger.net>
0003  *
0004  *  SPDX-License-Identifier: GPL-2.0-or-later
0005  */
0006 
0007 #ifndef KIS_META_DATA_TEST_H
0008 #define KIS_META_DATA_TEST_H
0009 
0010 #include <simpletest.h>
0011 
0012 namespace KisMetaData
0013 {
0014 class Value;
0015 }
0016 
0017 class KisMetaDataTest : public QObject
0018 {
0019     Q_OBJECT
0020 private Q_SLOTS:
0021 
0022     void testSchemaBasic();
0023     void testRationals();
0024     void testValueCreation();
0025     void testValueEquality();
0026     void testValueCopy();
0027     void testEntry();
0028     void testStore();
0029     void testFilters();
0030     void testTypeInfo();
0031     void testSchemaParse();
0032     void testParser();
0033     void testValidator();
0034 private:
0035     KisMetaData::Value createRationalValue();
0036     KisMetaData::Value createIntegerValue(int v = 42);
0037     KisMetaData::Value createStringValue();
0038     KisMetaData::Value createListValue();
0039 };
0040 
0041 #endif