Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++
1.2 KB
Raw Blame
/*
 *  SPDX-FileCopyrightText: 2019 Dmitry Kazakov <[email protected]>
 *
 *  SPDX-License-Identifier: GPL-2.0-or-later
 */
#ifndef KISFORESTTEST_H
#define KISFORESTTEST_H

#include <simpletest.h>
#include <QObject>

class KisForestTest : public QObject
{
    Q_OBJECT

private Q_SLOTS:
    void testAddToRoot();
    void testAddToRootChained();
    void testAddToLeaf();
    void testAddToLeafChained();

    void testDFSIteration();
    void testHierarchyIteration();
    void testSiblingIteration();
    void testCompositionIteration();
    void testCompositionIterationSubtree();

    void testSubtreeIteration();
    void testSubtreeTailIteration();

    void testEraseNode();
    void testEraseSubtree();
    void testEraseRange();

    void testMoveSubtree();

    void testReversedChildIteration();

    void testConversionsFromEnd();

    void testCopyForest();
    void testSwapForest();
    void testForestEmpty();

    void testSiblingsOnEndIterator();
    void testParentIterator();

    void testConstChildIterators();
    void testConstHierarchyIterators();
    void testConstSubtreeIterators();
    void testConstTailSubtreeIterators();
    void testConstTailFreeStandingForestFunctions();

};

#endif // KISFORESTTEST_H