go.temporal.io/server/chasm/library_mock.go
174 LOC · 58 covered · 116 uncovered · 12 ranges · 192 concepts · 6 introducers · 116 tests
File neighbourhood
The centred file is linked to every concept that introduces one of its ranges, every test that runs code from the file, and the gray connector concepts standing between those tests and the file's own introducer concepts. Undirected links join concepts to every file where they introduce source and concepts to the tests they introduce; arrows show specialization between the displayed concepts and bridge only concepts omitted from this view. Concept colors match the source ranges below; connector concepts have no source color and are shown in gray.
Focused file, its introducer and connector concepts, their introduced files, and tests that run code from the file
In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the related-file, concept, and source links on this page.
Graph controls are ready.
Interactive rendering requires JavaScript and WebGL. Use the related-file, concept, and source links on this page while the interactive map is unavailable.
// Code generated by MockGen. DO NOT EDIT.
// Source: library.go
//
// Generated by this command:
//
// mockgen -package chasm -source library.go -destination library_mock.go
//
// Package chasm is a generated GoMock package.
package chasm
import (
reflect "reflect"
nexus "github.com/nexus-rpc/sdk-go/nexus"
gomock "go.uber.org/mock/gomock"
grpc "google.golang.org/grpc"
)
// MockLibrary is a mock of Library interface.
type MockLibrary struct {
ctrl *gomock.Controller
recorder *MockLibraryMockRecorder
isgomock struct{}
}
// MockLibraryMockRecorder is the mock recorder for MockLibrary.
type MockLibraryMockRecorder struct {
mock *MockLibrary
}
// NewMockLibrary creates a new mock instance.
mock := &MockLibrary{ctrl: ctrl}
mock.recorder = &MockLibraryMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
return m.recorder
}
// Components mocks base method.
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Components")
ret0, _ := ret[0].([]*RegistrableComponent)
return ret0
}
// Components indicates an expected call of Components.
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Components", reflect.TypeOf((*MockLibrary)(nil).Components))
}
// Name mocks base method.
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Name")
ret0, _ := ret[0].(string)
return ret0
}
// Name indicates an expected call of Name.
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockLibrary)(nil).Name))
}
// NexusServiceProcessors mocks base method.
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NexusServiceProcessors")
ret0, _ := ret[0].([]*NexusServiceProcessor)
return ret0
}
// NexusServiceProcessors indicates an expected call of NexusServiceProcessors.
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NexusServiceProcessors", reflect.TypeOf((*MockLibrary)(nil).NexusServiceProcessors))
}
// NexusServices mocks base method.
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NexusServices")
ret0, _ := ret[0].([]*nexus.Service)
return ret0
}
// NexusServices indicates an expected call of NexusServices.
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NexusServices", reflect.TypeOf((*MockLibrary)(nil).NexusServices))
}
// RegisterServices mocks base method.
func (m *MockLibrary) RegisterServices(server *grpc.Server) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "RegisterServices", server)
}
// RegisterServices indicates an expected call of RegisterServices.
func (mr *MockLibraryMockRecorder) RegisterServices(server any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterServices", reflect.TypeOf((*MockLibrary)(nil).RegisterServices), server)
}
// Tasks mocks base method.
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Tasks")
ret0, _ := ret[0].([]*RegistrableTask)
return ret0
}
// Tasks indicates an expected call of Tasks.
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Tasks", reflect.TypeOf((*MockLibrary)(nil).Tasks))
}
// mustEmbedUnimplementedLibrary mocks base method.
func (m *MockLibrary) mustEmbedUnimplementedLibrary() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "mustEmbedUnimplementedLibrary")
}
// mustEmbedUnimplementedLibrary indicates an expected call of mustEmbedUnimplementedLibrary.
func (mr *MockLibraryMockRecorder) mustEmbedUnimplementedLibrary() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "mustEmbedUnimplementedLibrary", reflect.TypeOf((*MockLibrary)(nil).mustEmbedUnimplementedLibrary))
}
// Mocknamer is a mock of namer interface.
type Mocknamer struct {
ctrl *gomock.Controller
recorder *MocknamerMockRecorder
isgomock struct{}
}
// MocknamerMockRecorder is the mock recorder for Mocknamer.
type MocknamerMockRecorder struct {
mock *Mocknamer
}
// NewMocknamer creates a new mock instance.
func NewMocknamer(ctrl *gomock.Controller) *Mocknamer {
mock := &Mocknamer{ctrl: ctrl}
mock.recorder = &MocknamerMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *Mocknamer) EXPECT() *MocknamerMockRecorder {
return m.recorder
}
// Name mocks base method.
func (m *Mocknamer) Name() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Name")
ret0, _ := ret[0].(string)
return ret0
}
// Name indicates an expected call of Name.
func (mr *MocknamerMockRecorder) Name() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*Mocknamer)(nil).Name))
}