grafana/pkg/util/shortid_generator_test.go
2018-02-15 09:56:13 +01:00

13 lines
268 B
Go

package util
import "testing"
func TestAllowedCharMatchesUidPattern(t *testing.T) {
for _, c := range allowedChars {
err := VerifyUid(string(c))
if err != nil {
t.Fatalf("charset for creating new shortids contains chars not present in uid pattern")
}
}
}