guard.go ×1

Frontier kind: Code frontier

unlabeled · c_f5d868effe81

6 tests · 107 LOC · 4 files · introduces 0 tests · 9 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
2 ranges9 lines · 2 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
30 ranges107 lines · 4 files · 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 specializationmetric_capture.go ×2 · 2 introduced LOCmetric_capture.go ×2metric_capture.go ×1 · 2 introduced LOCmetric_capture.go ×1metric_capture.go ×2 · 4 introduced LOCmetric_capture.go ×2metric_capture.go ×9 · 41 introduced LOCmetric_capture.go ×9metric_capture.go ×1 · 1 introduced LOCmetric_capture.go ×1metric_capture.go ×3 · 15 introduced LOCmetric_capture.go ×3guard.go ×1 · 6 introduced LOCguard.go ×1TestA · 0 introduced LOCTestAguard.go ×2 · 3 introduced LOCguard.go ×2suite.go ×2 · 3 introduced LOCsuite.go ×2suite.go ×5 · 35 introduced LOCsuite.go ×5suite.go ×1 · 2 introduced LOCsuite.go ×1suite.go ×4 · 7 introduced LOCsuite.go ×4suite.go ×1 · 2 introduced LOCsuite.go ×1suite.go ×1 · 1 introduced LOCsuite.go ×1suite.go ×1 · 3 introduced LOCsuite.go ×1suite.go ×2 · 3 introduced LOCsuite.go ×2suite.go ×1 · 1 introduced LOCsuite.go ×1suite.go ×3 · 13 introduced LOCsuite.go ×3suite.go ×1 · 4 introduced LOCsuite.go ×1suite.go ×1 · 6 introduced LOCsuite.go ×1history_require.go ×1 · 5 introduced LOChistory_require.go ×1require.go ×1 · 3 introduced LOCrequire.go ×1suite.go ×1 · 7 introduced LOCsuite.go ×1TestOperatorServiceMetadata, TestWorkflowServiceMetadata · 0 introduced LOCTestOperatorServiceMetad…go.temporal.io/server/common/testing/historyrequire/history_require.go · 612 LOChistoryrequire/history_r…go.temporal.io/server/common/testing/parallelsuite/guard.go · 45 LOCparallelsuite/guard.gogo.temporal.io/server/common/testing/parallelsuite/suite.go · 335 LOCparallelsuite/suite.gogo.temporal.io/server/common/testing/protorequire/require.go · 157 LOCprotorequire/require.gogo.temporal.io/server/tests/testcore/metric_capture.go · 132 LOCtestcore/metric_capture.…TestOperatorServiceMetadata · introduced test · go.temporal.io/server/common/api/TestOperatorServiceMetadataTestOperatorServiceMetad…TestWorkflowServiceMetadata · introduced test · go.temporal.io/server/common/api/TestWorkflowServiceMetadataTestWorkflowServiceMetad…no_filter · introduced test · go.temporal.io/server/common/testing/parallelsuite/TestApplyTestifyMFilter/no_filterno_filtersubtest · introduced test · go.temporal.io/server/common/testing/parallelsuite/TestGuardSeal/assertion_after_Run/TestAssertionAfterRun/subtestsubtestTestA · introduced test · go.temporal.io/server/common/testing/parallelsuite/TestRun_AcceptsSuite/no_args/TestATestAdoes_not_panic_when_a_non-namespace_metric_was_queried · introduced test · go.temporal.io/server/tests/testcore/TestMetricCaptureSuite/TestGlobalMetricCapture/does_not_panic_when_a_non-namespace_metric_was_querieddoes_not_panic_when_a_no…panics_when_only_namespace-scoped_metrics_were_queried · introduced test · go.temporal.io/server/tests/testcore/TestMetricCaptureSuite/TestGlobalMetricCapture/panics_when_only_namespace-scoped_metrics_were_queriedpanics_when_only_namespa…can_capture_for_an_explicit_namespace · introduced test · go.temporal.io/server/tests/testcore/TestMetricCaptureSuite/TestNamespaceMetricCapture/can_capture_for_an_explicit_namespacecan_capture_for_an_expli…panics_when_the_metric_is_not_namespace-scoped · introduced test · go.temporal.io/server/tests/testcore/TestMetricCaptureSuite/TestNamespaceMetricCapture/panics_when_the_metric_is_not_namespace-scopedpanics_when_the_metric_i…returns_only_recordings_for_the_test_namespace · introduced test · go.temporal.io/server/tests/testcore/TestMetricCaptureSuite/TestNamespaceMetricCapture/returns_only_recordings_for_the_test_namespacereturns_only_recordings_…Focused concept · guard.go ×1 · 9 introduced LOCguard.go ×1

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.

2 files 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/testing/parallelsuite/suite.go 6 introduced LOC · 1 range

Open complete file

137 // Run creates a parallel subtest. The callback receives a fresh copy of the
138 // concrete suite type, initialized for the subtest's *testing.T.
139 > func (s *Suite[T]) Run(name string, fn func(T)) bool { suite.go
140 > pt := s.guardT.T // grab T before sealing
141 > s.guardT.markHasSubtests()
142 > return pt.Run(name, func(t *testing.T) {
143 > fn(s.copySuite(t, s.runParallel, nil, nil).(T))
144 > })
145 }
146
go.temporal.io/server/common/testing/parallelsuite/guard.go 3 introduced LOC · 1 range

Open complete file

41 }
42
43 > func (g *guardT) markHasSubtests() { guard.go
44 > g.hasSubtests.Store(true)
45 > }