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:
Michael Vogt 2025-07-16 11:16:19 +02:00
parent bb45b89d84
commit ad20533d87
3 changed files with 8 additions and 8 deletions

View file

@ -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) {