MCPcopy Create free account
hub / github.com/cel-expr/cel-go / TestContainers_ResolveCandidateNames

Function TestContainers_ResolveCandidateNames

common/containers/container_test.go:25–42  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

23)
24
25func 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
44func TestContainers_ResolveCandidateNames_FullyQualifiedName(t *testing.T) {
45 c, err := NewContainer(Name("a.b.c.M.N"))

Callers

nothing calls this directly

Calls 3

ResolveCandidateNamesMethod · 0.95
NewContainerFunction · 0.85
NameFunction · 0.85

Tested by

no test coverage detected