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

Method Assert

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

Source from the content-addressed store, hash-verified

69}
70
71func (c *FormatForShellTestCase) Assert(t *testing.T) {
72 actualCmd, actualArgs := FormatForShell(c.GivenCmd, c.GivenArgs)
73
74 assert.Equal(t, "sh", actualCmd,
75 "subprocess: expected FormatForShell command to equal 'sh' (was #%v)",
76 actualCmd)
77 assert.Equal(t, c.ExpectedArgs, actualArgs,
78 "subprocess: expected FormatForShell(%q, %v) to equal %#v (was %#v)",
79 c.GivenCmd, c.GivenArgs, c.ExpectedArgs, actualArgs,
80 )
81}
82
83func TestFormatForShell(t *testing.T) {
84 for desc, c := range map[string]FormatForShellTestCase{

Callers

nothing calls this directly

Calls 2

FormatForShellFunction · 0.85
EqualMethod · 0.45

Tested by

no test coverage detected