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

Function TestExtension

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

Source from the content-addressed store, hash-verified

215}
216
217func TestExtension(t *testing.T) {
218 cases := []struct {
219 osArgs []string
220 want []string
221 }{
222 {
223 []string{"filename", "-e", "foo", "--extension", "bar", "--extension=foobar"},
224 []string{"foo", "bar", "foobar"},
225 },
226 }
227 for _, c := range cases {
228 got := ParseOsArgs(c.osArgs)
229 if !reflect.DeepEqual(got.Options[Extension], c.want) {
230 t.Errorf("ParseOsArgs %q != %q", got.Options[Extension], c.want)
231 }
232 }
233}
234
235func TestIncludes(t *testing.T) {
236 cases := []struct {

Callers

nothing calls this directly

Calls 1

ParseOsArgsFunction · 0.85

Tested by

no test coverage detected