(t *testing.T)
| 55 | } |
| 56 | |
| 57 | func TestPatternComparable(t *testing.T) { |
| 58 | a := MustParsePattern("foo") |
| 59 | b := MustParsePattern("foo") |
| 60 | assert.Equal(t, a, b) |
| 61 | myMap := map[Pattern]string{} |
| 62 | bar := "bar" |
| 63 | myMap[MustParsePattern("foo")] = bar |
| 64 | assert.Equal(t, bar, myMap[a]) |
| 65 | assert.Equal(t, bar, myMap[b]) |
| 66 | } |
| 67 | |
| 68 | func TestPatternIncludes(t *testing.T) { |
| 69 | tests := []struct { |
nothing calls this directly
no test coverage detected