MCPcopy
hub / github.com/google/uuid / TestConstants

Function TestConstants

uuid_test.go:156–166  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

154}
155
156func TestConstants(t *testing.T) {
157 for x, tt := range constants {
158 v, ok := tt.c.(fmt.Stringer)
159 if !ok {
160 t.Errorf("%x: %v: not a stringer", x, v)
161 } else if s := v.String(); s != tt.name {
162 v, _ := tt.c.(int)
163 t.Errorf("%x: Constant %T:%d gives %q, expected %q", x, tt.c, v, s, tt.name)
164 }
165 }
166}
167
168func TestRandomUUID(t *testing.T) {
169 m := make(map[string]bool)

Callers

nothing calls this directly

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected