Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan White <support@dmapps.us>2019-02-23 01:17:51 +0300
committerJonathan White <support@dmapps.us>2019-02-26 02:09:54 +0300
commitd0d1b25e5cfebe7b735f54ba5083c4d02db07fe1 (patch)
tree069d3d7bfa3581447dde8ced55f50feb956cb738 /tests/TestEntrySearcher.cpp
parent5cf50d9fae914cb87aca3a553cfc268015609934 (diff)
Updates to EntrySearcher
* Only search custom named attributes * Search attribute values in addition to keys * Optimize search process
Diffstat (limited to 'tests/TestEntrySearcher.cpp')
-rw-r--r--tests/TestEntrySearcher.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/TestEntrySearcher.cpp b/tests/TestEntrySearcher.cpp
index 8128dd36e..e949b97b8 100644
--- a/tests/TestEntrySearcher.cpp
+++ b/tests/TestEntrySearcher.cpp
@@ -177,8 +177,8 @@ void TestEntrySearcher::testAllAttributesAreSearched()
void TestEntrySearcher::testSearchTermParser()
{
// Test standard search terms
- auto terms =
- m_entrySearcher.parseSearchTerms("-test \"quoted \\\"string\\\"\" user:user pass:\"test me\" noquote ");
+ m_entrySearcher.parseSearchTerms("-test \"quoted \\\"string\\\"\" user:user pass:\"test me\" noquote ");
+ auto terms = m_entrySearcher.m_searchTerms;
QCOMPARE(terms.length(), 5);
@@ -200,7 +200,8 @@ void TestEntrySearcher::testSearchTermParser()
QCOMPARE(terms[4]->word, QString("noquote"));
// Test wildcard and regex search terms
- terms = m_entrySearcher.parseSearchTerms("+url:*.google.com *user:\\d+\\w{2}");
+ m_entrySearcher.parseSearchTerms("+url:*.google.com *user:\\d+\\w{2}");
+ terms = m_entrySearcher.m_searchTerms;
QCOMPARE(terms.length(), 2);