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()
}
Load calls LoadFunc.
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
}