mirror of
https://github.com/ap-pauloafonso/ratio-spoof.git
synced 2026-01-11 20:10:22 +00:00
14 lines
258 B
Go
14 lines
258 B
Go
package generator
|
|
|
|
import "testing"
|
|
|
|
func TestDeaultKeyGenerator(t *testing.T) {
|
|
t.Run("Key has 8 length", func(t *testing.T) {
|
|
obj, _ := NewDefaultKeyGenerator()
|
|
key := obj.Key()
|
|
if len(key) != 8 {
|
|
t.Error("Keys must have length of 8")
|
|
}
|
|
|
|
})
|
|
}
|