visibility_persistence_suite.go ×1

Frontier kind: Code frontier

unlabeled · c_c43dd0f6302e

5 tests · 3950 LOC · 183 files · introduces 0 tests · 52 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
1 range52 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
666 ranges3950 lines · 183 files · Browse complete extent
All tests (intent)
5 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: 52 introduced LOC across 1 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/common/persistence/tests/visibility_persistence_suite.go 52 introduced LOC · 1 range

Open complete file

807
808 // TestUpsertWorkflowExecution test
809 > func (s *VisibilityPersistenceSuite) TestUpsertWorkflowExecution() { visibility_persistence_suite.go
810 > temporalChangeVersionPayload, _ := payload.Encode([]string{"dummy"})
811 > tests := []struct {
812 > request *manager.UpsertWorkflowExecutionRequest
813 > expected error
814 > }{
815 > {
816 > request: &manager.UpsertWorkflowExecutionRequest{
817 > VisibilityRequestBase: &manager.VisibilityRequestBase{
818 > NamespaceID: "",
819 > Namespace: "",
820 > Execution: &commonpb.WorkflowExecution{},
821 > WorkflowTypeName: "",
822 > StartTime: time.Time{},
823 > ExecutionTime: time.Time{},
824 > TaskID: 0,
825 > Memo: nil,
826 > SearchAttributes: &commonpb.SearchAttributes{
827 > IndexedFields: map[string]*commonpb.Payload{
828 > sadefs.TemporalChangeVersion: temporalChangeVersionPayload,
829 > },
830 > },
831 > Status: enumspb.WORKFLOW_EXECUTION_STATUS_RUNNING,
832 > },
833 > },
834 > expected: nil,
835 > },
836 > {
837 > request: &manager.UpsertWorkflowExecutionRequest{
838 > VisibilityRequestBase: &manager.VisibilityRequestBase{
839 > NamespaceID: "",
840 > Namespace: "",
841 > Execution: &commonpb.WorkflowExecution{},
842 > WorkflowTypeName: "",
843 > StartTime: time.Time{},
844 > ExecutionTime: time.Time{},
845 > TaskID: 0,
846 > Memo: nil,
847 > SearchAttributes: nil,
848 > Status: enumspb.WORKFLOW_EXECUTION_STATUS_RUNNING,
849 > },
850 > },
851 > // To avoid blocking the task queue processors on non-ElasticSearch visibility stores
852 > // we simply treat any attempts to perform Upserts as "no-ops"
853 > // Attempts to Scan, Count or List will still fail for non-ES stores.
854 > expected: nil,
855 > },
856 > }
857 >
858 > for _, test := range tests {
859 > s.Equal(test.expected, s.VisibilityMgr.UpsertWorkflowExecution(s.ctx, test.request))
860 > }
861 }
862