We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent41e7392 commit41023c5Copy full SHA for 41023c5
common/containers/container_test.go
@@ -62,6 +62,16 @@ func TestContainers_ResolveCandidateNames_EmptyContainer(t *testing.T) {
62
}
63
64
65
+funcTestContainers_Alias(t*testing.T) {
66
+cont,err:=DefaultContainer.Extend(Alias("my.example.pkg.verbose","bigex"))
67
+iferr!=nil {
68
+t.Fatalf("Extend() failed: %v",err)
69
+}
70
+if!reflect.DeepEqual(cont.ResolveCandidateNames("bigex.Execute"), []string{"my.example.pkg.verbose.Execute"}) {
71
+t.Errorf("ResolveCandidateNames() got %s, wanted %s",cont.ResolveCandidateNames("bigex.Execute"),"my.example.pkg.verbose.Execute")
72
73
74
+
75
funcTestContainers_Abbrevs(t*testing.T) {
76
abbr,err:=DefaultContainer.Extend(Abbrevs("my.alias.R"))
77
iferr!=nil {