(t *testing.T)
| 23 | ) |
| 24 | |
| 25 | func TestContainers_ResolveCandidateNames(t *testing.T) { |
| 26 | c, err := NewContainer(Name("a.b.c.M.N")) |
| 27 | if err != nil { |
| 28 | t.Fatal(err) |
| 29 | } |
| 30 | names := c.ResolveCandidateNames("R.s") |
| 31 | want := []string{ |
| 32 | "a.b.c.M.N.R.s", |
| 33 | "a.b.c.M.R.s", |
| 34 | "a.b.c.R.s", |
| 35 | "a.b.R.s", |
| 36 | "a.R.s", |
| 37 | "R.s", |
| 38 | } |
| 39 | if !reflect.DeepEqual(names, want) { |
| 40 | t.Errorf("got %v, wanted %v", names, want) |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | func TestContainers_ResolveCandidateNames_FullyQualifiedName(t *testing.T) { |
| 45 | c, err := NewContainer(Name("a.b.c.M.N")) |
nothing calls this directly
no test coverage detected