func MockGetOrg(callback func() (*mackerel.Org, error)) MockClientOption {
	return func(c *MockClient) {
		c.getOrgCallback = callback
	}
}
MockGetOrg returns an option to set the callback of GetOrg
package mackerelclient
import "github.com/mackerelio/mackerel-client-go"
type MockClient struct {
	findAWSIntegrationsCallback func() ([]*mackerel.AWSIntegration, error)
	findHostsCallback           func(param *mackerel.FindHostsParam) ([]*mackerel.Host, error)
	findServicesCallback        func() ([]*mackerel.Service, error)
	findChannelsCallback        func() ([]*mackerel.Channel, error)
	getOrgCallback              func() (*mackerel.Org, error)
	createHostCallback          func(param *mackerel.CreateHostParam) (string, error)
	updateHostStatusCallback    func(hostID string, status string) error
}
type MockClientOption func(*MockClient)
func NewMockClient(opts ...MockClientOption) *MockClient {
	client := &MockClient{}
	for _, opt := range opts {
		client.ApplyOption(opt)
	}
	return client
}
func (c *MockClient) ApplyOption(opt MockClientOption) {
	opt(c)
}
type errCallbackNotFound string
func (err errCallbackNotFound) Error() string {
	return string(err) + " callback not found"
}
func (c *MockClient) FindHosts(param *mackerel.FindHostsParam) ([]*mackerel.Host, error) {
	if c.findHostsCallback != nil {
		return c.findHostsCallback(param)
	}
	return nil, errCallbackNotFound("FindHosts")
}
func MockFindHosts(callback func(param *mackerel.FindHostsParam) ([]*mackerel.Host, error)) MockClientOption {
	return func(c *MockClient) {
		c.findHostsCallback = callback
	}
}
func (c *MockClient) FindServices() ([]*mackerel.Service, error) {
	if c.findServicesCallback != nil {
		return c.findServicesCallback()
	}
	return nil, errCallbackNotFound("FindServices")
}
func MockFindServices(callback func() ([]*mackerel.Service, error)) MockClientOption {
	return func(c *MockClient) {
		c.findServicesCallback = callback
	}
}
func (c *MockClient) FindChannels() ([]*mackerel.Channel, error) {
	if c.findChannelsCallback != nil {
		return c.findChannelsCallback()
	}
	return nil, errCallbackNotFound("FindChannels")
}
func MockFindChannels(callback func() ([]*mackerel.Channel, error)) MockClientOption {
	return func(c *MockClient) {
		c.findChannelsCallback = callback
	}
}
func (c *MockClient) GetOrg() (*mackerel.Org, error) {
	if c.getOrgCallback != nil {
		return c.getOrgCallback()
	}
	return nil, errCallbackNotFound("GetOrg")
}