github.com/kyma-incubator/compass/components/director@v0.0.0-20230623144113-d764f56ff805/pkg/scope/automock/scopes_getter.go (about)

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