MCPcopy Index your code
hub / github.com/docker-exec/dexec / TestTargetDir

Function TestTargetDir

cli/cli_test.go:162–175  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

160}
161
162func TestTargetDir(t *testing.T) {
163 cases := []struct {
164 osArgs []string
165 want []string
166 }{
167 {[]string{"filename", "-C", "foo"}, []string{"foo"}},
168 }
169 for _, c := range cases {
170 got := ParseOsArgs(c.osArgs)
171 if !reflect.DeepEqual(got.Options[TargetDir], c.want) {
172 t.Errorf("ParseOsArgs %q != %q", got.Options[TargetDir], c.want)
173 }
174 }
175}
176
177func TestSources(t *testing.T) {
178 cases := []struct {

Callers

nothing calls this directly

Calls 1

ParseOsArgsFunction · 0.85

Tested by

no test coverage detected