Documentation ¶
Overview ¶
Code generated by mockery v1.0.0. DO NOT EDIT.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartMockSessionProxyResponder ¶
func StartMockSessionProxyResponder(t *testing.T) (*SessionProxyResponderServer, *MockCloudRegistry)
Create and start a mock SessionProxyResponder as a service. This returns the mock object that is registered as the servicer to configure in test code and an instance of a `MockCloudRegistry` bound to the server address allocated to the mock local session manager.
Types ¶
type MockCloudRegistry ¶
type MockCloudRegistry struct { *platform_registry.ServiceRegistry ServerAddr string }
func (*MockCloudRegistry) GetCloudConnection ¶
func (m *MockCloudRegistry) GetCloudConnection(service string) (*grpc.ClientConn, error)
Mocked implementation which returns a grpc connection to the `ServerAddr` field in the struct.
func (*MockCloudRegistry) GetConnection ¶
func (m *MockCloudRegistry) GetConnection(service string) (*grpc.ClientConn, error)
type SessionProxyResponderServer ¶
LocalSessionManagerServer is an autogenerated mock type for the LocalSessionManagerServer type
func (*SessionProxyResponderServer) ChargingReAuth ¶
func (_m *SessionProxyResponderServer) ChargingReAuth(_a0 context.Context, _a1 *protos.ChargingReAuthRequest) (*protos.ChargingReAuthAnswer, error)
ChargingReAuth provides a mock function with given fields: _a0, _a1
func (*SessionProxyResponderServer) PolicyReAuth ¶
func (_m *SessionProxyResponderServer) PolicyReAuth(_a0 context.Context, _a1 *protos.PolicyReAuthRequest) (*protos.PolicyReAuthAnswer, error)
PolicyReAuth provides a mock function with given fields: _a0, _a1
Click to show internal directories.
Click to hide internal directories.