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:
Max 2025-10-15 17:21:52 +08:00
parent c4ecda54e9
commit b2dbe7ac51
2 changed files with 7 additions and 9 deletions

View file

@ -119,4 +119,3 @@ func generateRandomString(length int, charset string) string {
return string(result)
}

View file

@ -226,4 +226,3 @@ func BenchmarkGenerateAlphanumeric(b *testing.B) {
Generate(option)
}
}