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

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