github.com/kyma-incubator/compass/components/director@v0.0.0-20230623144113-d764f56ff805/internal/healthz/automock/repository.go (about)

     1  // Code generated by mockery. DO NOT EDIT.
     2  
     3  package automock
     4  
     5  import (
     6  	context "context"
     7  
     8  	mock "github.com/stretchr/testify/mock"
     9  )
    10  
    11  // Repository is an autogenerated mock type for the Repository type
    12  type Repository struct {
    13  	mock.Mock
    14  }
    15  
    16  // GetVersion provides a mock function with given fields: ctx
    17  func (_m *Repository) GetVersion(ctx context.Context) (string, bool, error) {
    18  	ret := _m.Called(ctx)
    19  
    20  	var r0 string
    21  	if rf, ok := ret.Get(0).(func(context.Context) string); ok {
    22  		r0 = rf(ctx)
    23  	} else {
    24  		r0 = ret.Get(0).(string)
    25  	}
    26  
    27  	var r1 bool
    28  	if rf, ok := ret.Get(1).(func(context.Context) bool); ok {
    29  		r1 = rf(ctx)
    30  	} else {
    31  		r1 = ret.Get(1).(bool)
    32  	}
    33  
    34  	var r2 error
    35  	if rf, ok := ret.Get(2).(func(context.Context) error); ok {
    36  		r2 = rf(ctx)
    37  	} else {
    38  		r2 = ret.Error(2)
    39  	}
    40  
    41  	return r0, r1, r2
    42  }
    43  
    44  type mockConstructorTestingTNewRepository interface {
    45  	mock.TestingT
    46  	Cleanup(func())
    47  }
    48  
    49  // NewRepository creates a new instance of Repository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    50  func NewRepository(t mockConstructorTestingTNewRepository) *Repository {
    51  	mock := &Repository{}
    52  	mock.Mock.Test(t)
    53  
    54  	t.Cleanup(func() { mock.AssertExpectations(t) })
    55  
    56  	return mock
    57  }