diff options
author | Fawzi Mohamed <fawzi.mohamed@digia.com> | 2012-12-03 19:17:09 +0100 |
---|---|---|
committer | Fawzi Mohamed <fawzi.mohamed@digia.com> | 2012-12-06 12:57:48 +0100 |
commit | 82a8e9bb86815ba3ad3665082ac6e55d41721187 (patch) | |
tree | 6e7f5620cd685cf727f79625ad36ad1faffe9d4a /tests/auto/qml/persistenttrie/tst_testtrie.h | |
parent | 8c64a918d6a2d16abc33689bea5b0076250dc06a (diff) | |
download | qt-creator-82a8e9bb86815ba3ad3665082ac6e55d41721187.tar.gz |
qmljs: added persistent trie
Add a presistent trie to store imports, and provide a better (IMHO)
completion algorithm.
The trie is quite generic and it might be worth while to move it to utils.
Change-Id: I4081346af6215b1ee8ff14bd063c2a021d7c8218
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
Diffstat (limited to 'tests/auto/qml/persistenttrie/tst_testtrie.h')
-rw-r--r-- | tests/auto/qml/persistenttrie/tst_testtrie.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/tests/auto/qml/persistenttrie/tst_testtrie.h b/tests/auto/qml/persistenttrie/tst_testtrie.h new file mode 100644 index 0000000000..2559e4a0c0 --- /dev/null +++ b/tests/auto/qml/persistenttrie/tst_testtrie.h @@ -0,0 +1,56 @@ +/**************************************************************************** +** +** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies). +** Contact: http://www.qt-project.org/legal +** +** This file is part of Qt Creator. +** +** Commercial License Usage +** Licensees holding valid commercial Qt licenses may use this file in +** accordance with the commercial license agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and Digia. For licensing terms and +** conditions see http://qt.digia.com/licensing. For further information +** use the contact form at http://qt.digia.com/contact-us. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Digia gives you certain additional +** rights. These rights are described in the Digia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +****************************************************************************/ + +#include <QtTest> +#include <QObject> + +QT_FORWARD_DECLARE_CLASS(QStringList) + +class tst_TestTrie : public QObject +{ + Q_OBJECT +public: + tst_TestTrie(); + +private slots: + void initTestCase(); + //void cleanupTestCase(); + //void init(); + //void cleanup(); + + void testListAll_data(); + void testMerge_data(); + void testIntersect_data(); + void testCompletion_data(); + + void testListAll(); + void testMerge(); + void testIntersect(); + void testCompletion(); +}; |