// NewMock creates a new HTTP mock based on the given request and response instances.
// It's mostly used internally.
493536
func NewMock(req *Request, res *Response) *Mocker {
	mock := &Mocker{
		request:  req,
		response: res,
		matcher:  DefaultMatcher,
	}
	res.Mock = mock
	req.Mock = mock
	req.Response = res
	return mock
}
546536
func NewMockClock(start ...time.Time) *MockClock {
	m := &MockClock{cond: sync.NewCond(new(sync.Mutex))}

	if len(start) > 1 {
		panic(fmt.Sprintf("Expected one argument to clock.NewMock, got %d", len(start)))
	}

	if len(start) == 1 {
		m.SetTime(start[0])
		return m
	}

	m.SetTime(time.Now().UTC())
	return m
}
754929
func NewMockAddr(ctrl *gomock.Controller) *MockAddr {
	mock := &MockAddr{ctrl: ctrl}
	mock.recorder = &MockAddrMockRecorder{mock}
	return mock
}
1367128
func NewMockBuildsServer(ctrl *gomock.Controller) *MockBuildsServer {
	mock := &MockBuildsServer{ctrl: ctrl}
	mock.recorder = &MockBuildsServerMockRecorder{mock}
	return mock
}
817694
func NewMockInstance(ctrl *gomock.Controller) *MockInstance {
	mock := &MockInstance{ctrl: ctrl}
	mock.recorder = &MockInstanceMockRecorder{mock}
	return mock
}
736791
func NewMockSecretInterface(ctrl *gomock.Controller) *MockSecretInterface {
	mock := &MockSecretInterface{ctrl: ctrl}
	mock.recorder = &MockSecretInterfaceMockRecorder{mock}
	return mock
}
561700
func NewMockServiceInterface(ctrl *gomock.Controller) *MockServiceInterface {
	mock := &MockServiceInterface{ctrl: ctrl}
	mock.recorder = &MockServiceInterfaceMockRecorder{mock}
	return mock
}
1220815
func NewMockConn(ctrl *gomock.Controller) *MockConn {
	mock := &MockConn{ctrl: ctrl}
	mock.recorder = &MockConnMockRecorder{mock}
	return mock
}
423399
func NewMockAPICalls(ctrl *gomock.Controller) *MockAPICalls {
	mock := &MockAPICalls{ctrl: ctrl}
	mock.recorder = &MockAPICallsMockRecorder{mock}
	return mock
}
451240
func NewMockCommandRunner(ctrl *gomock.Controller) *MockCommandRunner {
	mock := &MockCommandRunner{ctrl: ctrl}
	mock.recorder = &MockCommandRunnerMockRecorder{mock}
	return mock
}
1362255
func NewMockMath(ctrl *gomock.Controller) *MockMath {
	mock := &MockMath{ctrl: ctrl}
	mock.recorder = &MockMathMockRecorder{mock}
	return mock
}
469437
func NewMockThumbnail(ctrl *gomock.Controller) *MockThumbnail {
	mock := &MockThumbnail{ctrl: ctrl}
	mock.recorder = &MockThumbnailMockRecorder{mock}
	return mock
}
27100
func NewMockServer(ctrl *gomock.Controller) *MockServer {
	mock := &MockServer{ctrl: ctrl}
	mock.recorder = &MockServerMockRecorder{mock}
	return mock
}
200425
func NewMockApplication(ctrl *gomock.Controller) *MockApplication {
	mock := &MockApplication{ctrl: ctrl}
	mock.recorder = &MockApplicationMockRecorder{mock}
	return mock
}
741088
func NewMockConfig(ctrl *gomock.Controller) *MockConfig {
	mock := &MockConfig{ctrl: ctrl}
	mock.recorder = &MockConfigMockRecorder{mock}
	return mock
}
1299332
func NewMockMachine(ctrl *gomock.Controller) *MockMachine {
	mock := &MockMachine{ctrl: ctrl}
	mock.recorder = &MockMachineMockRecorder{mock}
	return mock
}
224125
func NewMockService(ctrl *gomock.Controller) *MockService {
	mock := &MockService{ctrl: ctrl}
	mock.recorder = &MockServiceMockRecorder{mock}
	return mock
}