diff options
| author | Harsh Shandilya <me@msfjarvis.dev> | 2022-05-03 01:48:16 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-02 20:18:16 +0000 |
| commit | c555609f164eb5245eb1cceb3fe22ec1d258ec5d (patch) | |
| tree | 2a3dd02158fccfff2d92fe9c3ff433758a141076 /format-common/src/test/kotlin/dev/msfjarvis/aps/util | |
| parent | 07a83a33b878791257d1aa2282e71c1d2f301254 (diff) | |
| download | HardenedPass-c555609f164eb5245eb1cceb3fe22ec1d258ec5d.tar.gz HardenedPass-c555609f164eb5245eb1cceb3fe22ec1d258ec5d.zip | |
Misc cleanups (#1891)
Diffstat (limited to 'format-common/src/test/kotlin/dev/msfjarvis/aps/util')
| -rw-r--r-- | format-common/src/test/kotlin/dev/msfjarvis/aps/util/totp/OtpTest.kt | 10 |
1 files changed, 5 insertions, 5 deletions
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 67195361..db74de3e 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 @@ -24,7 +24,7 @@ class OtpTest { } @Test - fun testOtpGeneration6Digits() { + fun otpGeneration6Digits() { assertEquals( "953550", generateOtp( @@ -46,7 +46,7 @@ class OtpTest { } @Test - fun testOtpGeneration10Digits() { + fun otpGeneration10Digits() { assertEquals( "0740900914", generateOtp( @@ -71,7 +71,7 @@ class OtpTest { } @Test - fun testOtpGenerationIllegalInput() { + fun otpGenerationIllegalInput() { assertNull( generateOtp( counter = 10000, @@ -108,7 +108,7 @@ class OtpTest { } @Test - fun testOtpGenerationUnusualSecrets() { + fun otpGenerationUnusualSecrets() { assertEquals( "127764", generateOtp( @@ -126,7 +126,7 @@ class OtpTest { } @Test - fun testOtpGenerationUnpaddedSecrets() { + fun otpGenerationUnpaddedSecrets() { // Secret was generated with `echo 'string with some padding needed' | base32` // We don't care for the resultant OTP's actual value, we just want both the padded and // unpadded variant to generate the same one. |
