github.com/nilium/gitlab-runner@v12.5.0+incompatible/helpers/service/mocks/Interface.go (about)

     1  // Code generated by mockery v1.0.0. DO NOT EDIT.
     2  
     3  // This comment works around https://github.com/vektra/mockery/issues/155
     4  
     5  package mocks
     6  
     7  import mock "github.com/stretchr/testify/mock"
     8  import service "github.com/ayufan/golang-kardianos-service"
     9  
    10  // Interface is an autogenerated mock type for the Interface type
    11  type Interface struct {
    12  	mock.Mock
    13  }
    14  
    15  // Start provides a mock function with given fields: s
    16  func (_m *Interface) Start(s service.Service) error {
    17  	ret := _m.Called(s)
    18  
    19  	var r0 error
    20  	if rf, ok := ret.Get(0).(func(service.Service) error); ok {
    21  		r0 = rf(s)
    22  	} else {
    23  		r0 = ret.Error(0)
    24  	}
    25  
    26  	return r0
    27  }
    28  
    29  // Stop provides a mock function with given fields: s
    30  func (_m *Interface) Stop(s service.Service) error {
    31  	ret := _m.Called(s)
    32  
    33  	var r0 error
    34  	if rf, ok := ret.Get(0).(func(service.Service) error); ok {
    35  		r0 = rf(s)
    36  	} else {
    37  		r0 = ret.Error(0)
    38  	}
    39  
    40  	return r0
    41  }