diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2023-06-15 15:49:32 +0530 |
---|---|---|
committer | Harsh Shandilya <me@msfjarvis.dev> | 2023-06-15 16:17:59 +0530 |
commit | 5dac84c3c882ee42bc541042684de18d7166fdd3 (patch) | |
tree | 227d2cec4c494be13bb942b70ab913b90325e452 /crypto-pgpainless/src/test | |
parent | c168ce2e8643b86eb9fd25339d79a9a070005f83 (diff) |
refactor: consistently adopt PGP over GPG for naming
PGP is the standard, GPG is an implementation of it. We're adhering to PGP, and not using GPG.
Diffstat (limited to 'crypto-pgpainless/src/test')
-rw-r--r-- | crypto-pgpainless/src/test/kotlin/app/passwordstore/crypto/KeyUtilsTest.kt | 2 | ||||
-rw-r--r-- | crypto-pgpainless/src/test/kotlin/app/passwordstore/crypto/PGPIdentifierTest.kt (renamed from crypto-pgpainless/src/test/kotlin/app/passwordstore/crypto/GpgIdentifierTest.kt) | 18 | ||||
-rw-r--r-- | crypto-pgpainless/src/test/kotlin/app/passwordstore/crypto/PGPKeyManagerTest.kt | 4 |
3 files changed, 12 insertions, 12 deletions
diff --git a/crypto-pgpainless/src/test/kotlin/app/passwordstore/crypto/KeyUtilsTest.kt b/crypto-pgpainless/src/test/kotlin/app/passwordstore/crypto/KeyUtilsTest.kt index f7bf46d9..39af53b1 100644 --- a/crypto-pgpainless/src/test/kotlin/app/passwordstore/crypto/KeyUtilsTest.kt +++ b/crypto-pgpainless/src/test/kotlin/app/passwordstore/crypto/KeyUtilsTest.kt @@ -18,7 +18,7 @@ class KeyUtilsTest { assertIs<PGPSecretKeyRing>(keyring) val keyId = tryGetId(key) assertNotNull(keyId) - assertIs<GpgIdentifier.KeyId>(keyId) + assertIs<PGPIdentifier.KeyId>(keyId) assertEquals("b950ae2813841585", keyId.toString()) } } diff --git a/crypto-pgpainless/src/test/kotlin/app/passwordstore/crypto/GpgIdentifierTest.kt b/crypto-pgpainless/src/test/kotlin/app/passwordstore/crypto/PGPIdentifierTest.kt index 009976a2..efc6e0ba 100644 --- a/crypto-pgpainless/src/test/kotlin/app/passwordstore/crypto/GpgIdentifierTest.kt +++ b/crypto-pgpainless/src/test/kotlin/app/passwordstore/crypto/PGPIdentifierTest.kt @@ -9,33 +9,33 @@ import kotlin.test.Test import kotlin.test.assertNotNull import kotlin.test.assertTrue -class GpgIdentifierTest { +class PGPIdentifierTest { @Test fun parseHexKeyIdWithout0xPrefix() { - val identifier = GpgIdentifier.fromString("79E8208280490C77") + val identifier = PGPIdentifier.fromString("79E8208280490C77") assertNotNull(identifier) - assertTrue { identifier is GpgIdentifier.KeyId } + assertTrue { identifier is PGPIdentifier.KeyId } } @Test fun parseHexKeyId() { - val identifier = GpgIdentifier.fromString("0x79E8208280490C77") + val identifier = PGPIdentifier.fromString("0x79E8208280490C77") assertNotNull(identifier) - assertTrue { identifier is GpgIdentifier.KeyId } + assertTrue { identifier is PGPIdentifier.KeyId } } @Test fun parseValidEmail() { - val identifier = GpgIdentifier.fromString("john.doe@example.org") + val identifier = PGPIdentifier.fromString("john.doe@example.org") assertNotNull(identifier) - assertTrue { identifier is GpgIdentifier.UserId } + assertTrue { identifier is PGPIdentifier.UserId } } @Test fun parseEmailWithoutTLD() { - val identifier = GpgIdentifier.fromString("john.doe@example") + val identifier = PGPIdentifier.fromString("john.doe@example") assertNotNull(identifier) - assertTrue { identifier is GpgIdentifier.UserId } + assertTrue { identifier is PGPIdentifier.UserId } } } diff --git a/crypto-pgpainless/src/test/kotlin/app/passwordstore/crypto/PGPKeyManagerTest.kt b/crypto-pgpainless/src/test/kotlin/app/passwordstore/crypto/PGPKeyManagerTest.kt index c8bd66c5..43a62bd7 100644 --- a/crypto-pgpainless/src/test/kotlin/app/passwordstore/crypto/PGPKeyManagerTest.kt +++ b/crypto-pgpainless/src/test/kotlin/app/passwordstore/crypto/PGPKeyManagerTest.kt @@ -1,8 +1,8 @@ package app.passwordstore.crypto -import app.passwordstore.crypto.GpgIdentifier.KeyId -import app.passwordstore.crypto.GpgIdentifier.UserId import app.passwordstore.crypto.KeyUtils.tryGetId +import app.passwordstore.crypto.PGPIdentifier.KeyId +import app.passwordstore.crypto.PGPIdentifier.UserId import app.passwordstore.crypto.errors.KeyAlreadyExistsException import app.passwordstore.crypto.errors.KeyNotFoundException import app.passwordstore.crypto.errors.NoKeysAvailableException |