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

Function TestValue

sql_test.go:106–113  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

104}
105
106func TestValue(t *testing.T) {
107 stringTest := "f47ac10b-58cc-0372-8567-0e02b2c3d479"
108 uuid := Must(Parse(stringTest))
109 val, _ := uuid.Value()
110 if val != stringTest {
111 t.Error("Value() did not return expected string")
112 }
113}

Callers

nothing calls this directly

Calls 4

MustFunction · 0.85
ParseFunction · 0.85
ErrorMethod · 0.80
ValueMethod · 0.45

Tested by

no test coverage detected