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

Function TestMD5

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

Source from the content-addressed store, hash-verified

407}
408
409func TestMD5(t *testing.T) {
410 uuid := NewMD5(NameSpaceDNS, []byte("python.org")).String()
411 want := "6fa459ea-ee8a-3ca4-894e-db77e160355e"
412 if uuid != want {
413 t.Errorf("MD5: got %q expected %q", uuid, want)
414 }
415}
416
417func TestSHA1(t *testing.T) {
418 uuid := NewSHA1(NameSpaceDNS, []byte("python.org")).String()

Callers

nothing calls this directly

Calls 2

NewMD5Function · 0.85
StringMethod · 0.45

Tested by

no test coverage detected