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

Function TestIncludes

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

Source from the content-addressed store, hash-verified

233}
234
235func TestIncludes(t *testing.T) {
236 cases := []struct {
237 osArgs []string
238 want []string
239 }{
240 {
241 []string{"filename", "-i", "foo", "--include", "bar", "--include=foobar"},
242 []string{"foo", "bar", "foobar"},
243 },
244 }
245 for _, c := range cases {
246 got := ParseOsArgs(c.osArgs)
247 if !reflect.DeepEqual(got.Options[Include], c.want) {
248 t.Errorf("ParseOsArgs %q != %q", got.Options[Include], c.want)
249 }
250 }
251}
252
253func TestArgs(t *testing.T) {
254 cases := []struct {

Callers

nothing calls this directly

Calls 1

ParseOsArgsFunction · 0.85

Tested by

no test coverage detected