github.com/kyma-incubator/compass/components/director@v0.0.0-20230623144113-d764f56ff805/internal/destinationfetchersvc/automock/destination_manager.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  // DestinationManager is an autogenerated mock type for the DestinationManager type
    12  type DestinationManager struct {
    13  	mock.Mock
    14  }
    15  
    16  // FetchDestinationsSensitiveData provides a mock function with given fields: ctx, tenantID, destinationNames
    17  func (_m *DestinationManager) FetchDestinationsSensitiveData(ctx context.Context, tenantID string, destinationNames []string) ([]byte, error) {
    18  	ret := _m.Called(ctx, tenantID, destinationNames)
    19  
    20  	var r0 []byte
    21  	if rf, ok := ret.Get(0).(func(context.Context, string, []string) []byte); ok {
    22  		r0 = rf(ctx, tenantID, destinationNames)
    23  	} else {
    24  		if ret.Get(0) != nil {
    25  			r0 = ret.Get(0).([]byte)
    26  		}
    27  	}
    28  
    29  	var r1 error
    30  	if rf, ok := ret.Get(1).(func(context.Context, string, []string) error); ok {
    31  		r1 = rf(ctx, tenantID, destinationNames)
    32  	} else {
    33  		r1 = ret.Error(1)
    34  	}
    35  
    36  	return r0, r1
    37  }
    38  
    39  // SyncTenantDestinations provides a mock function with given fields: ctx, tenantID
    40  func (_m *DestinationManager) SyncTenantDestinations(ctx context.Context, tenantID string) error {
    41  	ret := _m.Called(ctx, tenantID)
    42  
    43  	var r0 error
    44  	if rf, ok := ret.Get(0).(func(context.Context, string) error); ok {
    45  		r0 = rf(ctx, tenantID)
    46  	} else {
    47  		r0 = ret.Error(0)
    48  	}
    49  
    50  	return r0
    51  }
    52  
    53  type mockConstructorTestingTNewDestinationManager interface {
    54  	mock.TestingT
    55  	Cleanup(func())
    56  }
    57  
    58  // NewDestinationManager creates a new instance of DestinationManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    59  func NewDestinationManager(t mockConstructorTestingTNewDestinationManager) *DestinationManager {
    60  	mock := &DestinationManager{}
    61  	mock.Mock.Test(t)
    62  
    63  	t.Cleanup(func() { mock.AssertExpectations(t) })
    64  
    65  	return mock
    66  }