0
0
mirror of https://github.com/keepassxreboot/keepassxc.git synced 2024-09-19 20:02:18 +02:00
keepassxc/tests
Janek Bevendorff 113c8eb702 Add CLI tests and improve coding style and i18n
The CLI module was lacking unit test coverage and showed some severe
coding style violations, which this patch addresses.

In addition, all uses of qCritical() with untranslatble raw char*
sequences were removed in favor of proper locale strings. These are
written to STDERR through QTextStreams and support output
redirection for testing purposes. With this change, error messages don't
depend on the global Qt logging settings and targets anymore and go
directly to the terminal or into a file if needed.

This patch also fixes a bug discovered during unit test development,
where the extract command would just dump the raw XML contents without
decrypting embedded Salsa20-protected values first, making the XML
export mostly useless, since passwords are scrambled.

Lastly, all CLI commands received a dedicated -h/--help option.
2018-10-19 21:49:54 +02:00
..
data Remove obsolete database repair feature 2018-09-25 21:20:47 -04:00
gui Add CLI tests and improve coding style and i18n 2018-10-19 21:49:54 +02:00
mock Add a new database settings wizard 2018-09-25 21:12:47 +02:00
stub Introduce synchronize merge method 2018-09-30 09:36:39 -04:00
CMakeLists.txt Add CLI tests and improve coding style and i18n 2018-10-19 21:49:54 +02:00
config-keepassx-tests.h.cmake Remove KeePassHttp plugin and qhttp (#1752) 2018-03-31 11:36:18 -04:00
FailDevice.cpp Formatting the code. 2018-03-31 16:01:30 -04:00
FailDevice.h Make C++11 mandatory. 2015-09-12 13:55:50 +02:00
modeltest.cpp 🐛 Fix building with Qt 5.9 (closes #528) 2017-06-01 17:05:07 -04:00
modeltest.h Replace Q_EMIT, Q_SIGNALS and Q_SLOTS macros with MOC keywords 2017-03-10 16:12:02 +01:00
TestAutoType.cpp Formatting the code. 2018-03-31 16:01:30 -04:00
TestAutoType.h refactor autotype sequences and entry-point functions 2018-02-04 23:13:15 +01:00
TestBase32.cpp Move useful QTest template specializations to global header file 2018-01-24 13:32:37 +01:00
TestBase32.h Add new Base32 implementation 2017-10-21 13:15:02 +02:00
TestCli.cpp Add CLI tests and improve coding style and i18n 2018-10-19 21:49:54 +02:00
TestCli.h Add CLI tests and improve coding style and i18n 2018-10-19 21:49:54 +02:00
TestCryptoHash.cpp Formatting the code. 2018-03-31 16:01:30 -04:00
TestCryptoHash.h Replace Q_EMIT, Q_SIGNALS and Q_SLOTS macros with MOC keywords 2017-03-10 16:12:02 +01:00
TestCsvExporter.cpp Formatting the code. 2018-03-31 16:01:30 -04:00
TestCsvExporter.h Replace Q_EMIT, Q_SIGNALS and Q_SLOTS macros with MOC keywords 2017-03-10 16:12:02 +01:00
TestCsvParser.cpp Formatting the code. 2018-03-31 16:01:30 -04:00
TestCsvParser.h Formatting the code. 2018-03-31 16:01:30 -04:00
TestDatabase.cpp Add a new database settings wizard 2018-09-25 21:12:47 +02:00
TestDatabase.h Update and fix copyright headers 2017-06-14 15:54:43 +02:00
TestDeletedObjects.cpp Replaced Uuid with QUuid 2018-07-06 22:23:49 -04:00
TestDeletedObjects.h Replace Q_EMIT, Q_SIGNALS and Q_SLOTS macros with MOC keywords 2017-03-10 16:12:02 +01:00
TestEntry.cpp Introduce synchronize merge method 2018-09-30 09:36:39 -04:00
TestEntry.h keepassxc-cli show: resolve references in output (#1280) 2017-12-17 10:44:12 -05:00
TestEntryModel.cpp Complete refactor of TOTP integration 2018-09-15 12:10:26 -04:00
TestEntryModel.h Replace Q_EMIT, Q_SIGNALS and Q_SLOTS macros with MOC keywords 2017-03-10 16:12:02 +01:00
TestEntrySearcher.cpp Formatting the code. 2018-03-31 16:01:30 -04:00
TestEntrySearcher.h Formatting the code. 2018-03-31 16:01:30 -04:00
TestGlobal.h Introduce synchronize merge method 2018-09-30 09:36:39 -04:00
TestGroup.cpp Introduce synchronize merge method 2018-09-30 09:36:39 -04:00
TestGroup.h Introduce synchronize merge method 2018-09-30 09:36:39 -04:00
TestGroupModel.cpp Formatting the code. 2018-03-31 16:01:30 -04:00
TestGroupModel.h Replace Q_EMIT, Q_SIGNALS and Q_SLOTS macros with MOC keywords 2017-03-10 16:12:02 +01:00
TestHashedBlockStream.cpp Move useful QTest template specializations to global header file 2018-01-24 13:32:37 +01:00
TestHashedBlockStream.h Replace Q_EMIT, Q_SIGNALS and Q_SLOTS macros with MOC keywords 2017-03-10 16:12:02 +01:00
TestKdbx2.cpp Add a new database settings wizard 2018-09-25 21:12:47 +02:00
TestKdbx2.h Formatting the code. 2018-03-31 16:01:30 -04:00
TestKdbx3.cpp Remove obsolete database repair feature 2018-09-25 21:20:47 -04:00
TestKdbx3.h Remove obsolete database repair feature 2018-09-25 21:20:47 -04:00
TestKdbx4.cpp Add CLI tests and improve coding style and i18n 2018-10-19 21:49:54 +02:00
TestKdbx4.h Add a new database settings wizard 2018-09-25 21:12:47 +02:00
TestKeePass1Reader.cpp Add a new database settings wizard 2018-09-25 21:12:47 +02:00
TestKeePass1Reader.h Replace Q_EMIT, Q_SIGNALS and Q_SLOTS macros with MOC keywords 2017-03-10 16:12:02 +01:00
TestKeePass2Format.cpp Introduce synchronize merge method 2018-09-30 09:36:39 -04:00
TestKeePass2Format.h Add a new database settings wizard 2018-09-25 21:12:47 +02:00
TestKeePass2RandomStream.cpp Formatting the code. 2018-03-31 16:01:30 -04:00
TestKeePass2RandomStream.h Replace Q_EMIT, Q_SIGNALS and Q_SLOTS macros with MOC keywords 2017-03-10 16:12:02 +01:00
TestKeys.cpp Add a new database settings wizard 2018-09-25 21:12:47 +02:00
TestKeys.h Add MockChallengeResponseKey and additional composite key component test 2018-03-01 19:26:18 -05:00
TestMerge.cpp Introduce synchronize merge method 2018-09-30 09:36:39 -04:00
TestMerge.h Introduce synchronize merge method 2018-09-30 09:36:39 -04:00
TestModified.cpp Introduce synchronize merge method 2018-09-30 09:36:39 -04:00
TestModified.h Introduce synchronize merge method 2018-09-30 09:36:39 -04:00
TestOpenSSHKey.cpp Merge branch 'master' 2018-08-24 09:42:38 -04:00
TestOpenSSHKey.h SSH Agent: Expect passphrases to be in UTF-8 2018-07-14 17:07:07 -04:00
TestPasswordGenerator.cpp Add CLI tests and improve coding style and i18n 2018-10-19 21:49:54 +02:00
TestPasswordGenerator.h Add CLI tests and improve coding style and i18n 2018-10-19 21:49:54 +02:00
TestRandom.cpp Formatting the code. 2018-03-31 16:01:30 -04:00
TestRandom.h Replace Q_EMIT, Q_SIGNALS and Q_SLOTS macros with MOC keywords 2017-03-10 16:12:02 +01:00
TestSymmetricCipher.cpp Add CLI tests and improve coding style and i18n 2018-10-19 21:49:54 +02:00
TestSymmetricCipher.h Add CLI tests and improve coding style and i18n 2018-10-19 21:49:54 +02:00
TestTools.cpp Add some unit tests to Tools 2018-05-22 09:28:54 +02:00
TestTools.h Add some unit tests to Tools 2018-05-22 09:28:54 +02:00
TestTotp.cpp Complete refactor of TOTP integration 2018-09-15 12:10:26 -04:00
TestTotp.h Complete refactor of TOTP integration 2018-09-15 12:10:26 -04:00
TestWildcardMatcher.cpp Formatting the code. 2018-03-31 16:01:30 -04:00
TestWildcardMatcher.h Replace Q_EMIT, Q_SIGNALS and Q_SLOTS macros with MOC keywords 2017-03-10 16:12:02 +01:00
TestYkChallengeResponseKey.cpp Formatting the code. 2018-03-31 16:01:30 -04:00
TestYkChallengeResponseKey.h Formatting the code. 2018-03-31 16:01:30 -04:00