diff options
author | Jonathan White <support@dmapps.us> | 2019-05-13 00:42:55 +0300 |
---|---|---|
committer | Jonathan White <support@dmapps.us> | 2019-05-20 01:21:34 +0300 |
commit | 2ee97ed1912fd068cd3484c439f2582a5d829ef4 (patch) | |
tree | da8d11c7102bb0757de7950e98ac3cf42ac2fa2c /tests/TestCli.cpp | |
parent | 96438a45b452271fa433e6488b85cb2e054c153c (diff) |
Code formatting
Diffstat (limited to 'tests/TestCli.cpp')
-rw-r--r-- | tests/TestCli.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/tests/TestCli.cpp b/tests/TestCli.cpp index 9574f6d32..23af631e6 100644 --- a/tests/TestCli.cpp +++ b/tests/TestCli.cpp @@ -690,8 +690,9 @@ void TestCli::testKeyFileOption() listCmd.execute({"ls", "-k", keyFilePath, m_keyFileProtectedDbFile->fileName()}); m_stdoutFile->reset(); m_stdoutFile->readLine(); // skip password prompt - QCOMPARE(m_stdoutFile->readAll(), QByteArray("entry1\n" - "entry2\n")); + QCOMPARE(m_stdoutFile->readAll(), + QByteArray("entry1\n" + "entry2\n")); // Should raise an error with no key file. qint64 pos = m_stdoutFile->pos(); @@ -713,8 +714,7 @@ void TestCli::testKeyFileOption() m_stdoutFile->readLine(); // skip password prompt m_stderrFile->seek(posErr); QCOMPARE(m_stdoutFile->readAll(), QByteArray("")); - QCOMPARE(m_stderrFile->readAll().split(':').at(0), - QByteArray("Failed to load key file invalidpath")); + QCOMPARE(m_stderrFile->readAll().split(':').at(0), QByteArray("Failed to load key file invalidpath")); } void TestCli::testNoPasswordOption() @@ -724,8 +724,9 @@ void TestCli::testNoPasswordOption() QString keyFilePath(QString(KEEPASSX_TEST_DATA_DIR).append("/KeyFileProtectedNoPassword.key")); listCmd.execute({"ls", "-k", keyFilePath, "--no-password", m_keyFileProtectedNoPasswordDbFile->fileName()}); m_stdoutFile->reset(); - QCOMPARE(m_stdoutFile->readAll(), QByteArray("entry1\n" - "entry2\n")); + QCOMPARE(m_stdoutFile->readAll(), + QByteArray("entry1\n" + "entry2\n")); // Should raise an error with no key file. qint64 pos = m_stdoutFile->pos(); |