MCPcopy Create free account
hub / github.com/google/uuid / BenchmarkUUIDs_Strings

Function BenchmarkUUIDs_Strings

uuid_test.go:769–782  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

767}
768
769func BenchmarkUUIDs_Strings(b *testing.B) {
770 uuid1, err := Parse("f47ac10b-58cc-0372-8567-0e02b2c3d479")
771 if err != nil {
772 b.Fatal(err)
773 }
774 uuid2, err := Parse("7d444840-9dc0-11d1-b245-5ffdce74fad2")
775 if err != nil {
776 b.Fatal(err)
777 }
778 uuids := UUIDs{uuid1, uuid2}
779 for i := 0; i < b.N; i++ {
780 uuids.Strings()
781 }
782}
783
784func TestVersion6(t *testing.T) {
785 uuid1, err := NewV6()

Callers

nothing calls this directly

Calls 2

StringsMethod · 0.95
ParseFunction · 0.85

Tested by

no test coverage detected