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

Function TestSHA1

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

Source from the content-addressed store, hash-verified

415}
416
417func TestSHA1(t *testing.T) {
418 uuid := NewSHA1(NameSpaceDNS, []byte("python.org")).String()
419 want := "886313e1-3b8a-5372-9b90-0c9aee199e5d"
420 if uuid != want {
421 t.Errorf("SHA1: got %q expected %q", uuid, want)
422 }
423}
424
425func TestNodeID(t *testing.T) {
426 nid := []byte{1, 2, 3, 4, 5, 6}

Callers

nothing calls this directly

Calls 2

NewSHA1Function · 0.85
StringMethod · 0.45

Tested by

no test coverage detected