(t *testing.T, in []byte, tt test)
| 113 | } |
| 114 | |
| 115 | func testBytes(t *testing.T, in []byte, tt test) { |
| 116 | uuid, err := ParseBytes(in) |
| 117 | if ok := (err == nil); ok != tt.isuuid { |
| 118 | t.Errorf("ParseBytes(%s) got %v expected %v\b", in, ok, tt.isuuid) |
| 119 | } |
| 120 | if err != nil { |
| 121 | return |
| 122 | } |
| 123 | suuid, _ := Parse(string(in)) |
| 124 | if uuid != suuid { |
| 125 | t.Errorf("ParseBytes(%s) got %v expected %v\b", in, uuid, suuid) |
| 126 | } |
| 127 | } |
| 128 | |
| 129 | func TestUUID(t *testing.T) { |
| 130 | for _, tt := range tests { |
no test coverage detected