metadata.go ×2

Frontier kind: Joint frontier

unlabeled · c_5e776a1f112a

6 tests · 32 LOC · 1 file · introduces 4 tests · 9 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
2 ranges9 lines · 1 files
Tests
4 tests

Contains — complete concept membership

All code (extent)
9 ranges32 lines · 1 file · Browse complete extent
All tests (intent)
6 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.

Introduced files, introduced tests, and structurally relevant concept specializationmarked_IDs_are_separate_from_resolved_metadata · 0 introduced LOCmarked_IDs_are_separate_…ignores_non-activity_keys · 0 introduced LOCignores_non-activity_key…metadata.go ×1 · 4 introduced LOCmetadata.go ×1metadata.go ×1 · 1 introduced LOCmetadata.go ×1metadata.go ×1 · 3 introduced LOCmetadata.go ×1metadata.go ×1 · 2 introduced LOCmetadata.go ×1metadata.go ×1 · 3 introduced LOCmetadata.go ×1metadata.go ×1 · 3 introduced LOCmetadata.go ×1metadata.go ×1 · 7 introduced LOCmetadata.go ×1TestOperatorServiceMetadata, TestWorkflowServiceMetadata · 0 introduced LOCTestOperatorServiceMetad…go.temporal.io/server/common/contextutil/metadata.go · 190 LOCcontextutil/metadata.goTestOperatorServiceMetadata · introduced test · go.temporal.io/server/common/api/TestOperatorServiceMetadataTestOperatorServiceMetad…TestWorkflowServiceMetadata · introduced test · go.temporal.io/server/common/api/TestWorkflowServiceMetadataTestWorkflowServiceMetad…adds_metadata_context_to_empty_context · introduced test · go.temporal.io/server/common/contextutil/TestAddMetadataContext/adds_metadata_context_to_empty_contextadds_metadata_context_to…ignores_non-activity_keys · introduced test · go.temporal.io/server/common/contextutil/TestContextMetadataGetMarkedActivityIDs/ignores_non-activity_keysignores_non-activity_key…marked_IDs_are_separate_from_resolved_metadata · introduced test · go.temporal.io/server/common/contextutil/TestContextMetadataGetMarkedActivityIDs/marked_IDs_are_separate_from_resolved_metadatamarked_IDs_are_separate_…returns_multiple_marked_activity_IDs · introduced test · go.temporal.io/server/common/contextutil/TestContextMetadataGetMarkedActivityIDs/returns_multiple_marked_activity_IDsreturns_multiple_marked_…returns_single_marked_activity_ID · introduced test · go.temporal.io/server/common/contextutil/TestContextMetadataGetMarkedActivityIDs/returns_single_marked_activity_IDreturns_single_marked_ac…marks_activity_ID_on_valid_context · introduced test · go.temporal.io/server/common/contextutil/TestContextMetadataMarkActivityID/marks_activity_ID_on_valid_contextmarks_activity_ID_on_val…marks_multiple_activity_IDs · introduced test · go.temporal.io/server/common/contextutil/TestContextMetadataMarkActivityID/marks_multiple_activity_IDsmarks_multiple_activity_…returns_metadata_context_when_present · introduced test · go.temporal.io/server/common/contextutil/TestGetMetadataContext/returns_metadata_context_when_presentreturns_metadata_context…Focused concept · metadata.go ×2 · 9 introduced LOCmetadata.go ×2

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.

4 tests introduced at this concept.

Introduced code

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

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

go.temporal.io/server/common/contextutil/metadata.go 9 introduced LOC · 2 ranges

Open complete file

92 return false
93 }
94 > metadataCtx.Lock() metadata.go
95 > defer metadataCtx.Unlock()
96 > metadataCtx.MarkedActivityIDs[activityID] = struct{}{}
97 > return true
98 }
99
111 return nil
112 }
113 > ids := make([]string, 0, len(metadataCtx.MarkedActivityIDs)) metadata.go
114 > for id := range metadataCtx.MarkedActivityIDs {
115 > ids = append(ids, id)
116 > }
117 > return ids
118 }
119