func (mock *CommandMock) ListCalls() []struct {
	Ctx  context.Context
	Args []string
} {
	var calls []struct {
		Ctx  context.Context
		Args []string
	}
	lockCommandMockList.RLock()
	calls = mock.calls.List
	lockCommandMockList.RUnlock()
	return calls
}
ListCalls gets all the calls that were made to List.
Check the length with:
len(mockedCommand.ListCalls())
package gocmd
import (
	"context"
	"io"
	"sync"
)
var (
	lockCommandMockBuild       sync.RWMutex
	lockCommandMockEnv         sync.RWMutex
	lockCommandMockGet         sync.RWMutex
	lockCommandMockList        sync.RWMutex
	lockCommandMockModDownload sync.RWMutex
	lockCommandMockModTidy     sync.RWMutex
)
type CommandMock struct {
	BuildFunc func(ctx context.Context, args ...string) error
	EnvFunc func(ctx context.Context, args ...string) (io.Reader, error)
	GetFunc func(ctx context.Context, args ...string) error
	ListFunc func(ctx context.Context, args ...string) (io.Reader, error)
	ModDownloadFunc func(ctx context.Context) error
	ModTidyFunc func(ctx context.Context) error
	calls struct {
		Build []struct {
			Ctx context.Context
			Args []string
		}
		Env []struct {
			Ctx context.Context
			Args []string
		}
		Get []struct {
			Ctx context.Context
			Args []string
		}
		List []struct {
			Ctx context.Context
			Args []string
		}
		ModDownload []struct {
			Ctx context.Context
		}
		ModTidy []struct {
			Ctx context.Context
		}
	}
}
func (mock *CommandMock) Build(ctx context.Context, args ...string) error {
	if mock.BuildFunc == nil {
		panic("CommandMock.BuildFunc: method is nil but Command.Build was just called")
	}
	callInfo := struct {
		Ctx  context.Context
		Args []string
	}{
		Ctx:  ctx,
		Args: args,
	}
	lockCommandMockBuild.Lock()
	mock.calls.Build = append(mock.calls.Build, callInfo)
	lockCommandMockBuild.Unlock()
	return mock.BuildFunc(ctx, args...)
}
func (mock *CommandMock) BuildCalls() []struct {
	Ctx  context.Context
	Args []string
} {
	var calls []struct {
		Ctx  context.Context
		Args []string
	}
	lockCommandMockBuild.RLock()
	calls = mock.calls.Build
	lockCommandMockBuild.RUnlock()
	return calls
}
func (mock *CommandMock) Env(ctx context.Context, args ...string) (io.Reader, error) {
	if mock.EnvFunc == nil {
		panic("CommandMock.EnvFunc: method is nil but Command.Env was just called")
	}
	callInfo := struct {
		Ctx  context.Context
		Args []string
	}{
		Ctx:  ctx,
		Args: args,
	}
	lockCommandMockEnv.Lock()
	mock.calls.Env = append(mock.calls.Env, callInfo)
	lockCommandMockEnv.Unlock()
	return mock.EnvFunc(ctx, args...)
}
func (mock *CommandMock) EnvCalls() []struct {
	Ctx  context.Context
	Args []string
} {
	var calls []struct {
		Ctx  context.Context
		Args []string
	}
	lockCommandMockEnv.RLock()
	calls = mock.calls.Env
	lockCommandMockEnv.RUnlock()
	return calls
}
func (mock *CommandMock) Get(ctx context.Context, args ...string) error {
	if mock.GetFunc == nil {
		panic("CommandMock.GetFunc: method is nil but Command.Get was just called")
	}
	callInfo := struct {
		Ctx  context.Context
		Args []string
	}{
		Ctx:  ctx,
		Args: args,
	}
	lockCommandMockGet.Lock()
	mock.calls.Get = append(mock.calls.Get, callInfo)
	lockCommandMockGet.Unlock()
	return mock.GetFunc(ctx, args...)
}
func (mock *CommandMock) GetCalls() []struct {
	Ctx  context.Context
	Args []string
} {
	var calls []struct {
		Ctx  context.Context
		Args []string
	}
	lockCommandMockGet.RLock()
	calls = mock.calls.Get
	lockCommandMockGet.RUnlock()
	return calls
}
func (mock *CommandMock) List(ctx context.Context, args ...string) (io.Reader, error) {
	if mock.ListFunc == nil {
		panic("CommandMock.ListFunc: method is nil but Command.List was just called")
	}
	callInfo := struct {
		Ctx  context.Context
		Args []string
	}{
		Ctx:  ctx,
		Args: args,
	}
	lockCommandMockList.Lock()
	mock.calls.List = append(mock.calls.List, callInfo)
	lockCommandMockList.Unlock()
	return mock.ListFunc(ctx, args...)
}