MCPcopy Create free account
hub / github.com/containers/image / TestMatchError

Function TestMatchError

docker/reference/normalize_test.go:496–505  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

494}
495
496func 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
507func TestMatch(t *testing.T) {
508 matchCases := []struct {

Callers

nothing calls this directly

Calls 2

ParseAnyReferenceFunction · 0.85
FamiliarMatchFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…