MCPcopy
hub / github.com/gofrs/uuid / testUUIDString

Function testUUIDString

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

Source from the content-addressed store, hash-verified

77}
78
79func testUUIDString(t *testing.T) {
80 got := NamespaceDNS.String()
81 want := "6ba7b810-9dad-11d1-80b4-00c04fd430c8"
82 if got != want {
83 t.Errorf("%v.String() = %q, want %q", NamespaceDNS, got, want)
84 }
85}
86
87func testUUIDVersion(t *testing.T) {
88 u := UUID{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}

Callers

nothing calls this directly

Calls 1

StringMethod · 0.80

Tested by

no test coverage detected