testutil: rename Calls() -> CallArgsList() for clarity
The current MockCmd.Calls() is a bit ambiguous so follow the example of pytest here and rename to the cleaner CallArgsList() that captures more closely what the helper is actually doing.
This commit is contained in:
parent
bb45b89d84
commit
ad20533d87
3 changed files with 8 additions and 8 deletions
|
|
@ -22,7 +22,7 @@ func TestMockCommand(t *testing.T) {
|
|||
assert.Equal(t, [][]string{
|
||||
{"run1-arg1", "run1-arg2"},
|
||||
{"run2-arg1", "run2-arg2"},
|
||||
}, fakeCmd.Calls())
|
||||
}, fakeCmd.CallArgsList())
|
||||
}
|
||||
|
||||
func TestCaptureStdout(t *testing.T) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue