(t *testing.T)
| 494 | } |
| 495 | |
| 496 | func TestMatchError(t *testing.T) { |
| 497 | named, err := ParseAnyReference("foo") |
| 498 | if err != nil { |
| 499 | t.Fatal(err) |
| 500 | } |
| 501 | _, err = FamiliarMatch("[-x]", named) |
| 502 | if err == nil { |
| 503 | t.Fatalf("expected an error, got nothing") |
| 504 | } |
| 505 | } |
| 506 | |
| 507 | func TestMatch(t *testing.T) { |
| 508 | matchCases := []struct { |
nothing calls this directly
no test coverage detected
searching dependent graphs…