mocks

package
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2020 License: BSD-3-Clause Imports: 11 Imported by: 0

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

type SessionProxyResponderServer struct {
	mock.Mock
}

LocalSessionManagerServer is an autogenerated mock type for the LocalSessionManagerServer type

func (*SessionProxyResponderServer) ChargingReAuth

ChargingReAuth provides a mock function with given fields: _a0, _a1

func (*SessionProxyResponderServer) PolicyReAuth

PolicyReAuth provides a mock function with given fields: _a0, _a1

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL