2023-01-18 18:33:21 +00:00
// Code generated by mockery v2.15.0. DO NOT EDIT.
2022-05-04 16:38:45 +00:00
package acl
2023-01-18 18:33:21 +00:00
import mock "github.com/stretchr/testify/mock"
2022-05-04 16:38:45 +00:00
// MockTokenWriter is an autogenerated mock type for the TokenWriter type
type MockTokenWriter struct {
mock . Mock
}
// Delete provides a mock function with given fields: secretID, fromLogout
func ( _m * MockTokenWriter ) Delete ( secretID string , fromLogout bool ) error {
ret := _m . Called ( secretID , fromLogout )
var r0 error
if rf , ok := ret . Get ( 0 ) . ( func ( string , bool ) error ) ; ok {
r0 = rf ( secretID , fromLogout )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
2023-01-18 18:33:21 +00:00
type mockConstructorTestingTNewMockTokenWriter interface {
mock . TestingT
Cleanup ( func ( ) )
}
// NewMockTokenWriter creates a new instance of MockTokenWriter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewMockTokenWriter ( t mockConstructorTestingTNewMockTokenWriter ) * MockTokenWriter {
2022-05-04 16:38:45 +00:00
mock := & MockTokenWriter { }
mock . Mock . Test ( t )
t . Cleanup ( func ( ) { mock . AssertExpectations ( t ) } )
return mock
}