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

Function testBytes

uuid_test.go:115–127  ·  view source on GitHub ↗
(t *testing.T, in []byte, tt test)

Source from the content-addressed store, hash-verified

113}
114
115func testBytes(t *testing.T, in []byte, tt test) {
116 uuid, err := ParseBytes(in)
117 if ok := (err == nil); ok != tt.isuuid {
118 t.Errorf("ParseBytes(%s) got %v expected %v\b", in, ok, tt.isuuid)
119 }
120 if err != nil {
121 return
122 }
123 suuid, _ := Parse(string(in))
124 if uuid != suuid {
125 t.Errorf("ParseBytes(%s) got %v expected %v\b", in, uuid, suuid)
126 }
127}
128
129func TestUUID(t *testing.T) {
130 for _, tt := range tests {

Callers 1

TestUUIDFunction · 0.85

Calls 2

ParseBytesFunction · 0.85
ParseFunction · 0.85

Tested by

no test coverage detected