mirror of
https://github.com/grafana/grafana.git
synced 2024-11-26 19:00:54 -06:00
13 lines
268 B
Go
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")
|
|
}
|
|
}
|
|
}
|