2022-06-17 09:24:43 +00:00
// Code generated by mockery v2.12.0. DO NOT EDIT.
2022-03-27 10:59:30 +00:00
package dataplane
import (
2022-04-21 14:48:21 +00:00
acl "github.com/hashicorp/consul/acl"
2022-03-27 10:59:30 +00:00
mock "github.com/stretchr/testify/mock"
2022-06-17 09:24:43 +00:00
resolver "github.com/hashicorp/consul/acl/resolver"
2022-04-21 14:48:21 +00:00
testing "testing"
2022-03-27 10:59:30 +00:00
)
// MockACLResolver is an autogenerated mock type for the ACLResolver type
type MockACLResolver struct {
mock . Mock
}
// ResolveTokenAndDefaultMeta provides a mock function with given fields: _a0, _a1, _a2
2022-06-17 09:24:43 +00:00
func ( _m * MockACLResolver ) ResolveTokenAndDefaultMeta ( _a0 string , _a1 * acl . EnterpriseMeta , _a2 * acl . AuthorizerContext ) ( resolver . Result , error ) {
2022-03-27 10:59:30 +00:00
ret := _m . Called ( _a0 , _a1 , _a2 )
2022-06-17 09:24:43 +00:00
var r0 resolver . Result
if rf , ok := ret . Get ( 0 ) . ( func ( string , * acl . EnterpriseMeta , * acl . AuthorizerContext ) resolver . Result ) ; ok {
2022-03-27 10:59:30 +00:00
r0 = rf ( _a0 , _a1 , _a2 )
} else {
2022-06-17 09:24:43 +00:00
r0 = ret . Get ( 0 ) . ( resolver . Result )
2022-03-27 10:59:30 +00:00
}
var r1 error
2022-04-05 21:10:06 +00:00
if rf , ok := ret . Get ( 1 ) . ( func ( string , * acl . EnterpriseMeta , * acl . AuthorizerContext ) error ) ; ok {
2022-03-27 10:59:30 +00:00
r1 = rf ( _a0 , _a1 , _a2 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2022-04-21 14:48:21 +00:00
2022-06-17 09:24:43 +00:00
// NewMockACLResolver creates a new instance of MockACLResolver. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.
2022-04-21 14:48:21 +00:00
func NewMockACLResolver ( t testing . TB ) * MockACLResolver {
mock := & MockACLResolver { }
2022-06-17 09:24:43 +00:00
mock . Mock . Test ( t )
2022-04-21 14:48:21 +00:00
t . Cleanup ( func ( ) { mock . AssertExpectations ( t ) } )
return mock
}