aboutsummaryrefslogtreecommitdiff
path: root/app/src/test/java
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2022-07-15 14:00:15 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2022-07-15 14:53:52 +0530
commitbcf33e90a574e072c0a5aa027dd2cf78e3f4e3f0 (patch)
treebcb9782143cc905feadfa0c0cdc66e59046da1db /app/src/test/java
parenta6bcdd1d9da0fbc3d33cbfcace4756c79887170d (diff)
Remove OpenKeychain code and leave TODOs for missing functionality
Diffstat (limited to 'app/src/test/java')
-rw-r--r--app/src/test/java/app/passwordstore/util/crypto/GpgIdentifierTest.kt41
1 files changed, 0 insertions, 41 deletions
diff --git a/app/src/test/java/app/passwordstore/util/crypto/GpgIdentifierTest.kt b/app/src/test/java/app/passwordstore/util/crypto/GpgIdentifierTest.kt
deleted file mode 100644
index 29a9dc16..00000000
--- a/app/src/test/java/app/passwordstore/util/crypto/GpgIdentifierTest.kt
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * Copyright © 2014-2021 The Android Password Store Authors. All Rights Reserved.
- * SPDX-License-Identifier: GPL-3.0-only
- */
-
-package app.passwordstore.util.crypto
-
-import kotlin.test.Test
-import kotlin.test.assertNotNull
-import kotlin.test.assertTrue
-
-class GpgIdentifierTest {
-
- @Test
- fun parseHexKeyIdWithout0xPrefix() {
- val identifier = GpgIdentifier.fromString("79E8208280490C77")
- assertNotNull(identifier)
- assertTrue { identifier is GpgIdentifier.KeyId }
- }
-
- @Test
- fun parseHexKeyId() {
- val identifier = GpgIdentifier.fromString("0x79E8208280490C77")
- assertNotNull(identifier)
- assertTrue { identifier is GpgIdentifier.KeyId }
- }
-
- @Test
- fun parseValidEmail() {
- val identifier = GpgIdentifier.fromString("john.doe@example.org")
- assertNotNull(identifier)
- assertTrue { identifier is GpgIdentifier.UserId }
- }
-
- @Test
- fun parseEmailWithoutTLD() {
- val identifier = GpgIdentifier.fromString("john.doe@example")
- assertNotNull(identifier)
- assertTrue { identifier is GpgIdentifier.UserId }
- }
-}