service_grpc.pb.mock.go ×3

Frontier kind: Code frontier

unlabeled · c_7f2fcfa74ebd

10 tests · 2535 LOC · 129 files · introduces 0 tests · 26 LOC · 3 files

Introduces — evidence that enters the hierarchy at this concept

Code
6 ranges26 lines · 3 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
382 ranges2535 lines · 129 files · Browse complete extent
All tests (intent)
10 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.

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

go.temporal.io/server/common/testing/mockapi/workflowservicemock/v1/service_grpc.pb.mock.go 13 introduced LOC · 3 ranges

Open complete file

484
485 // DescribeSchedule mocks base method.
486 > func (m *MockWorkflowServiceClient) DescribeSchedule(ctx context.Context, in *workflowservice.DescribeScheduleRequest, opts ...grpc.CallOption) (*workflowservice.DescribeScheduleResponse, error) { service_grpc.pb.mock.go
487 > m.ctrl.T.Helper()
488 > varargs := []any{ctx, in}
489 > for _, a := range opts {
490 varargs = append(varargs, a)
491 }
492 > ret := m.ctrl.Call(m, "DescribeSchedule", varargs...) service_grpc.pb.mock.go
493 > ret0, _ := ret[0].(*workflowservice.DescribeScheduleResponse)
494 > ret1, _ := ret[1].(error)
495 > return ret0, ret1
496 }
497
498 // DescribeSchedule indicates an expected call of DescribeSchedule.
499 > func (mr *MockWorkflowServiceClientMockRecorder) DescribeSchedule(ctx, in any, opts ...any) *gomock.Call { service_grpc.pb.mock.go
500 > mr.mock.ctrl.T.Helper()
501 > varargs := append([]any{ctx, in}, opts...)
502 > return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeSchedule", reflect.TypeOf((*MockWorkflowServiceClient)(nil).DescribeSchedule), varargs...)
503 > }
504
505 // DescribeTaskQueue mocks base method.
go.temporal.io/server/service/worker/scanner/scheduleinvariants/invariants.go 7 introduced LOC · 2 ranges

Open complete file

345 // stale, so visibility can't be trusted to rule out an anomaly. DescribeSchedule reads
346 // authoritative state. Callers bound the number of these checks per namespace.
347 > func (a *Activities) scheduleIsExpectedNotToFire(ctx context.Context, nsName, scheduleID string) bool { invariants.go
348 > if err := a.rateLimiter.Wait(ctx); err != nil {
349 a.logger.Warn("rate-limiter wait failed during DescribeSchedule; counting schedule as anomaly",
350 tag.WorkflowNamespace(nsName), tag.ScheduleID(scheduleID), tag.Error(err))
351 return false
352 }
353 > desc, err := a.sdkClientFactory.GetSystemClient().WorkflowService().DescribeSchedule(ctx, &workflowservice.DescribeScheduleRequest{ invariants.go
354 > Namespace: nsName,
355 > ScheduleId: scheduleID,
356 > })
357 > if err != nil {
358 a.logger.Warn("DescribeSchedule failed",
359 tag.WorkflowNamespace(nsName), tag.ScheduleID(scheduleID), tag.Error(err))
go.temporal.io/server/common/testing/mocksdk/client_mock.go 6 introduced LOC · 1 range

Open complete file

756
757 // WorkflowService mocks base method.
758 > func (m *MockClient) WorkflowService() workflowservice.WorkflowServiceClient { client_mock.go
759 > m.ctrl.T.Helper()
760 > ret := m.ctrl.Call(m, "WorkflowService")
761 > ret0, _ := ret[0].(workflowservice.WorkflowServiceClient)
762 > return ret0
763 > }
764
765 // WorkflowService indicates an expected call of WorkflowService.