registry_mock.go ×6

Frontier kind: Code frontier

unlabeled · c_6629e3dbe06c

32 tests · 2164 LOC · 91 files · introduces 0 tests · 30 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
6 ranges30 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
329 ranges2164 lines · 91 files · Browse complete extent
All tests (intent)
32 testsBrowse complete intent

Neighbourhood graph

The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.

Introduced files, introduced tests, and structurally relevant concept specialization

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 native relationship evidence on this page.

Graph controls are ready.

Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.

Native relationship evidence

Every exact file and test below is linked only from the concept that introduces it.

Introduced tests

Every collected test enters the hierarchy at exactly one concept.

No tests are introduced at this concept. Its intent tests are introduced by other concepts.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

1 file ranked by introduced lines: 30 introduced LOC across 6 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/common/namespace/nsregistry/registry_mock.go 30 introduced LOC · 6 ranges

Open complete file

70
71 // NewMockPersistence creates a new mock instance.
72 > func NewMockPersistence(ctrl *gomock.Controller) *MockPersistence { registry_mock.go
73 > mock := &MockPersistence{ctrl: ctrl}
74 > mock.recorder = &MockPersistenceMockRecorder{mock}
75 > return mock
76 > }
77
78 // EXPECT returns an object that allows the caller to indicate expected use.
79 > func (m *MockPersistence) EXPECT() *MockPersistenceMockRecorder { registry_mock.go
80 > return m.recorder
81 > }
82
83 // GetMetadata mocks base method.
112
113 // ListNamespaces mocks base method.
114 > func (m *MockPersistence) ListNamespaces(arg0 context.Context, arg1 *persistence.ListNamespacesRequest) (*persistence.ListNamespacesResponse, error) { registry_mock.go
115 > m.ctrl.T.Helper()
116 > ret := m.ctrl.Call(m, "ListNamespaces", arg0, arg1)
117 > ret0, _ := ret[0].(*persistence.ListNamespacesResponse)
118 > ret1, _ := ret[1].(error)
119 > return ret0, ret1
120 > }
121
122 // ListNamespaces indicates an expected call of ListNamespaces.
123 > func (mr *MockPersistenceMockRecorder) ListNamespaces(arg0, arg1 any) *gomock.Call { registry_mock.go
124 > mr.mock.ctrl.T.Helper()
125 > return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListNamespaces", reflect.TypeOf((*MockPersistence)(nil).ListNamespaces), arg0, arg1)
126 > }
127
128 // WatchNamespaces mocks base method.
129 > func (m *MockPersistence) WatchNamespaces(ctx context.Context) (<-chan *persistence.NamespaceWatchEvent, error) { registry_mock.go
130 > m.ctrl.T.Helper()
131 > ret := m.ctrl.Call(m, "WatchNamespaces", ctx)
132 > ret0, _ := ret[0].(<-chan *persistence.NamespaceWatchEvent)
133 > ret1, _ := ret[1].(error)
134 > return ret0, ret1
135 > }
136
137 // WatchNamespaces indicates an expected call of WatchNamespaces.
138 > func (mr *MockPersistenceMockRecorder) WatchNamespaces(ctx any) *gomock.Call { registry_mock.go
139 > mr.mock.ctrl.T.Helper()
140 > return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WatchNamespaces", reflect.TypeOf((*MockPersistence)(nil).WatchNamespaces), ctx)
141 > }