func (mock *IConfigMock) LoadCalls() []struct{} {
	var calls []struct{}
	mock.lockLoad.RLock()
	calls = mock.calls.Load
	mock.lockLoad.RUnlock()
	return calls
}
LoadCalls gets all the calls that were made to Load.
Check the length with:
len(mockedIConfig.LoadCalls())
package config
import (
	"sync"
)
var _ IConfig = &IConfigMock{}
type IConfigMock struct {
	LoadFunc func() (*Config, error)
	LocationFunc func() (string, error)
	RemoveFunc func() error
	SaveFunc func(config *Config) error
	calls struct {
		Load []struct{}
		Location []struct{}
		Remove []struct{}
		Save []struct {
			Config *Config
		}
	}
	lockLoad     sync.RWMutex
	lockLocation sync.RWMutex
	lockRemove   sync.RWMutex
	lockSave     sync.RWMutex
}
func (mock *IConfigMock) Load() (*Config, error) {
	if mock.LoadFunc == nil {
		panic("IConfigMock.LoadFunc: method is nil but IConfig.Load was just called")
	}
	callInfo := struct{}{}
	mock.lockLoad.Lock()
	mock.calls.Load = append(mock.calls.Load, callInfo)
	mock.lockLoad.Unlock()
	return mock.LoadFunc()
}