summaryrefslogtreecommitdiff
path: root/format-common/src
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2021-08-13 18:40:34 +0530
committerGitHub <noreply@github.com>2021-08-13 18:40:34 +0530
commita82f8dda860714f446373e6c9406f13d8d6a2547 (patch)
tree1d40a286751b1ac3801c1240bfa454c84c77dc73 /format-common/src
parent70137f31917ba1d28d36d1557808c135828ae433 (diff)
Disable explicit API for tests (#1483)
* build: disable explicit API for test tasks * Remove `internal` modifier from test classes
Diffstat (limited to 'format-common/src')
-rw-r--r--format-common/src/test/kotlin/dev/msfjarvis/aps/data/passfile/PasswordEntryTest.kt2
-rw-r--r--format-common/src/test/kotlin/dev/msfjarvis/aps/util/time/TestClocks.kt2
-rw-r--r--format-common/src/test/kotlin/dev/msfjarvis/aps/util/totp/OtpTest.kt2
3 files changed, 3 insertions, 3 deletions
diff --git a/format-common/src/test/kotlin/dev/msfjarvis/aps/data/passfile/PasswordEntryTest.kt b/format-common/src/test/kotlin/dev/msfjarvis/aps/data/passfile/PasswordEntryTest.kt
index df4dc42e..5479c6db 100644
--- a/format-common/src/test/kotlin/dev/msfjarvis/aps/data/passfile/PasswordEntryTest.kt
+++ b/format-common/src/test/kotlin/dev/msfjarvis/aps/data/passfile/PasswordEntryTest.kt
@@ -18,7 +18,7 @@ import kotlinx.coroutines.test.TestCoroutineScope
import org.junit.Test
@OptIn(ExperimentalCoroutinesApi::class, ExperimentalTime::class)
-internal class PasswordEntryTest {
+class PasswordEntryTest {
private fun makeEntry(content: String) =
PasswordEntry(fakeClock, testFinder, testScope, content.encodeToByteArray())
diff --git a/format-common/src/test/kotlin/dev/msfjarvis/aps/util/time/TestClocks.kt b/format-common/src/test/kotlin/dev/msfjarvis/aps/util/time/TestClocks.kt
index d75cc900..5098bec9 100644
--- a/format-common/src/test/kotlin/dev/msfjarvis/aps/util/time/TestClocks.kt
+++ b/format-common/src/test/kotlin/dev/msfjarvis/aps/util/time/TestClocks.kt
@@ -13,7 +13,7 @@ import java.time.ZoneOffset.UTC
/**
* Implementation of [UserClock] that is fixed to [Instant.EPOCH] for deterministic time-based tests
*/
-internal class TestUserClock(instant: Instant) : UserClock() {
+class TestUserClock(instant: Instant) : UserClock() {
constructor() : this(Instant.EPOCH)
diff --git a/format-common/src/test/kotlin/dev/msfjarvis/aps/util/totp/OtpTest.kt b/format-common/src/test/kotlin/dev/msfjarvis/aps/util/totp/OtpTest.kt
index a2de94d8..bff7af1e 100644
--- a/format-common/src/test/kotlin/dev/msfjarvis/aps/util/totp/OtpTest.kt
+++ b/format-common/src/test/kotlin/dev/msfjarvis/aps/util/totp/OtpTest.kt
@@ -11,7 +11,7 @@ import kotlin.test.assertNotNull
import kotlin.test.assertNull
import org.junit.Test
-internal class OtpTest {
+class OtpTest {
private fun generateOtp(
counter: Long,