MCPcopy
hub / github.com/git-lfs/git-lfs / Assert

Method Assert

subprocess/subprocess_test.go:43–53  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

41}
42
43func (c *FormatForShellQuotedArgsTestCase) Assert(t *testing.T) {
44 actualCmd, actualArgs := FormatForShellQuotedArgs(c.GivenCmd, c.GivenArgs)
45
46 assert.Equal(t, "sh", actualCmd,
47 "subprocess: expected FormatForShell command to equal 'sh' (was #%v)",
48 actualCmd)
49 assert.Equal(t, c.ExpectedArgs, actualArgs,
50 "subprocess: expected FormatForShell(%q, %v) to equal %#v (was %#v)",
51 c.GivenCmd, c.GivenArgs, c.ExpectedArgs, actualArgs,
52 )
53}
54
55func TestFormatForShellQuotedArgs(t *testing.T) {
56 for desc, c := range map[string]FormatForShellQuotedArgsTestCase{

Callers

nothing calls this directly

Calls 2

FormatForShellQuotedArgsFunction · 0.85
EqualMethod · 0.45

Tested by

no test coverage detected