Refactor OTP tests and cleanup code
- Removed unnecessary blank lines in otp_test.go and otp.go files for improved readability. - Ensured consistency in test assertions for alphanumeric code generation and default behavior with zero values. - Streamlined the benchmark test for alphanumeric code generation, enhancing performance measurement clarity.
This commit is contained in:
parent
c4ecda54e9
commit
b2dbe7ac51
2 changed files with 7 additions and 9 deletions
|
|
@ -119,4 +119,3 @@ func generateRandomString(length int, charset string) string {
|
|||
|
||||
return string(result)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -226,4 +226,3 @@ func BenchmarkGenerateAlphanumeric(b *testing.B) {
|
|||
Generate(option)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue