kogs/user_test.go
2024-06-17 15:42:22 -06:00

17 lines
211 B
Go

package main
import "testing"
func TestUserKey(t *testing.T) {
u := &User{
Username: "arst",
}
key := u.Key()
exp := "user:arst:key"
if key != exp {
t.Errorf("expected %q, got %q\n", exp, key)
}
}