mirror of
https://github.com/grafana/grafana.git
synced 2025-02-11 16:15:42 -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")
|
|
}
|
|
}
|
|
}
|