(t *testing.T)
| 46 | } |
| 47 | |
| 48 | func TestIDComparable(t *testing.T) { |
| 49 | a := MustParseID("foo") |
| 50 | b := MustParseID("foo") |
| 51 | assert.Equal(t, a, b) |
| 52 | myMap := map[ID]string{} |
| 53 | bar := "bar" |
| 54 | myMap[MustParseID("foo")] = bar |
| 55 | assert.Equal(t, bar, myMap[a]) |
| 56 | assert.Equal(t, bar, myMap[b]) |
| 57 | } |
| 58 | |
| 59 | func TestMatchNew(t *testing.T) { |
| 60 | tests := []struct { |
nothing calls this directly
no test coverage detected