(t *testing.T)
| 137 | } |
| 138 | |
| 139 | func TestMatch(t *testing.T) { |
| 140 | pattern, params, _ := m.Match("dummy/copy; a=b") |
| 141 | test.String(t, pattern, "dummy/copy") |
| 142 | test.String(t, params["a"], "b") |
| 143 | |
| 144 | pattern, _, _ = m.Match("type/foobar") |
| 145 | test.String(t, pattern, "^type/.+$") |
| 146 | |
| 147 | _, _, minifier := m.Match("dummy/") |
| 148 | test.That(t, minifier == nil) |
| 149 | } |
| 150 | |
| 151 | func TestWildcard(t *testing.T) { |
| 152 | mimetypeTests := []struct { |