aboutsummaryrefslogtreecommitdiffstats
path: root/crypto-pgpainless/src/test/kotlin/dev/msfjarvis/aps/crypto/PGPKeyManagerTest.kt
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2022-05-03 01:48:16 +0530
committerGitHub <noreply@github.com>2022-05-02 20:18:16 +0000
commitc555609f164eb5245eb1cceb3fe22ec1d258ec5d (patch)
tree2a3dd02158fccfff2d92fe9c3ff433758a141076 /crypto-pgpainless/src/test/kotlin/dev/msfjarvis/aps/crypto/PGPKeyManagerTest.kt
parent07a83a33b878791257d1aa2282e71c1d2f301254 (diff)
downloadHardenedPass-c555609f164eb5245eb1cceb3fe22ec1d258ec5d.tar.gz
HardenedPass-c555609f164eb5245eb1cceb3fe22ec1d258ec5d.zip
Misc cleanups (#1891)
Diffstat (limited to 'crypto-pgpainless/src/test/kotlin/dev/msfjarvis/aps/crypto/PGPKeyManagerTest.kt')
-rw-r--r--crypto-pgpainless/src/test/kotlin/dev/msfjarvis/aps/crypto/PGPKeyManagerTest.kt22
1 files changed, 11 insertions, 11 deletions
diff --git a/crypto-pgpainless/src/test/kotlin/dev/msfjarvis/aps/crypto/PGPKeyManagerTest.kt b/crypto-pgpainless/src/test/kotlin/dev/msfjarvis/aps/crypto/PGPKeyManagerTest.kt
index 1439d52d..cf33b53f 100644
--- a/crypto-pgpainless/src/test/kotlin/dev/msfjarvis/aps/crypto/PGPKeyManagerTest.kt
+++ b/crypto-pgpainless/src/test/kotlin/dev/msfjarvis/aps/crypto/PGPKeyManagerTest.kt
@@ -51,7 +51,7 @@ class PGPKeyManagerTest {
}
@Test
- fun testAddingKey() =
+ fun addKey() =
scope.runTest {
// Check if the key id returned is correct
val keyId = keyManager.getKeyId(keyManager.addKey(key).unwrap())
@@ -66,7 +66,7 @@ class PGPKeyManagerTest {
}
@Test
- fun testAddingKeyWithoutReplaceFlag() =
+ fun addKeyWithoutReplaceFlag() =
scope.runTest {
// Check adding the keys twice
keyManager.addKey(key, false).unwrap()
@@ -76,7 +76,7 @@ class PGPKeyManagerTest {
}
@Test
- fun testAddingKeyWithReplaceFlag() =
+ fun addKeyWithReplaceFlag() =
scope.runTest {
// Check adding the keys twice
keyManager.addKey(key, true).unwrap()
@@ -86,7 +86,7 @@ class PGPKeyManagerTest {
}
@Test
- fun testRemovingKey() =
+ fun removeKey() =
scope.runTest {
// Add key using KeyManager
keyManager.addKey(key).unwrap()
@@ -101,7 +101,7 @@ class PGPKeyManagerTest {
}
@Test
- fun testGetExistingKeyById() =
+ fun getKeyById() =
scope.runTest {
// Add key using KeyManager
keyManager.addKey(key).unwrap()
@@ -116,7 +116,7 @@ class PGPKeyManagerTest {
}
@Test
- fun testGetExistingKeyByFullUserId() =
+ fun getKeyByFullUserId() =
scope.runTest {
keyManager.addKey(key).unwrap()
@@ -126,7 +126,7 @@ class PGPKeyManagerTest {
}
@Test
- fun testGetExistingKeyByEmailUserId() =
+ fun getKeyByEmailUserId() =
scope.runTest {
keyManager.addKey(key).unwrap()
@@ -136,7 +136,7 @@ class PGPKeyManagerTest {
}
@Test
- fun testGetNonExistentKey() =
+ fun getNonExistentKey() =
scope.runTest {
// Add key using KeyManager
keyManager.addKey(key).unwrap()
@@ -150,7 +150,7 @@ class PGPKeyManagerTest {
}
@Test
- fun testFindKeysWithoutAdding() =
+ fun findNonExistentKey() =
scope.runTest {
// Check returned key
val error = keyManager.getKeyById(KeyId(0x08edf7567183ce44)).unwrapError()
@@ -159,7 +159,7 @@ class PGPKeyManagerTest {
}
@Test
- fun testGettingAllKeys() =
+ fun getAllKeys() =
scope.runTest {
// TODO: Should we check for more than 1 keys?
// Check if KeyManager returns no key
@@ -175,7 +175,7 @@ class PGPKeyManagerTest {
}
@Test
- fun testGettingMultipleIdentityKeyWithBothUserIDs() {
+ fun getMultipleIdentityKeyWithAllIdentities() {
scope.runTest {
val key = PGPKey(getArmoredPrivateKeyWithMultipleIdentities())
keyManager.addKey(key).unwrap()