LeechCraft 0.6.70-19424-g027e980fd1
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
flattofoldersproxymodeltest.h
Go to the documentation of this file.
1/**********************************************************************
2 * LeechCraft - modular cross-platform feature rich internet client.
3 * Copyright (C) 2006-2014 Georg Rudoy
4 *
5 * Distributed under the Boost Software License, Version 1.0.
6 * (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE_1_0.txt)
7 **********************************************************************/
8
9#pragma once
10
11#include <QObject>
12
13namespace LC::Util
14{
15 class FlatToFoldersProxyModelTest : public QObject
16 {
17 Q_OBJECT
18 private slots:
19 void initTestCase ();
20 void initTestCase_data ();
21
22 void testInitialTree ();
23 void testFoldersFollowKeys ();
24 void testInsertCreatesFoldersOnDemand ();
25 void testRekeyKeepsTheSurvivingLeaf ();
26 void testRemovingTheLastLeafRemovesTheFolder ();
27 void testRemovalFollowsOwnBookkeeping ();
28 void testSourceSortLeavesTheTreeAlone ();
29 void testSourceResetIsOneReset ();
30 void testAttachAndDetach ();
31 void testDragAndDropMapThroughFolders ();
32 void testReleasesUpstreamIndexes ();
33 void testRenameKeepsTheFolder ();
34 void testRenameOntoAnExistingKeyMerges ();
35 void testSplitSpreadsTheRows ();
36 void testRemovedKeyMovesRowsToUnkeyed ();
37 void testKeepingTheOldKeyAddsFolders ();
38 void testUnknownKeyChangesNothing ();
39 void testRandomWalk ();
40 };
41}