suite.go ×5

Frontier kind: Code frontier

unlabeled · c_ff0c86938541

22 tests · 89 LOC · 3 files · introduces 0 tests · 35 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
5 ranges35 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
23 ranges89 lines · 3 files · Browse complete extent
All tests (intent)
22 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 ×3test_env.go ×3 · 8 introduced LOCtest_env.go ×3test_env.go ×1 · 2 introduced LOCtest_env.go ×1test_env.go ×1 · 4 introduced LOCtest_env.go ×1test_env.go ×1 · 2 introduced LOCtest_env.go ×1test_env.go ×2 · 5 introduced LOCtest_env.go ×2TestShrinksAgain · 0 introduced LOCTestShrinksAgainTestGrows · 0 introduced LOCTestGrowsTestAwaitUsesSuiteContext · 0 introduced LOCTestAwaitUsesSuiteContex…TestAwaitTrueFalseRetry · 0 introduced LOCTestAwaitTrueFalseRetrysuite.go ×2 · 8 introduced LOCsuite.go ×2suite.go ×1 · 3 introduced LOCsuite.go ×1suite.go ×1 · 3 introduced LOCsuite.go ×1TestCallsF · 0 introduced LOCTestCallsFTestContextHasDeadline · 0 introduced LOCTestContextHasDeadlineTestDoesntGrowPastMax · 0 introduced LOCTestDoesntGrowPastMaxsuite.go ×2 · 6 introduced LOCsuite.go ×2adaptive_pool.go ×1 · 3 introduced LOCadaptive_pool.go ×1guard.go ×1 · 6 introduced LOCguard.go ×1guard.go ×1 · 9 introduced LOCguard.go ×1TestA · 0 introduced LOCTestAsuite.go ×1 · 3 introduced LOCsuite.go ×1suite.go ×2 · 5 introduced LOCsuite.go ×2guard.go ×2 · 3 introduced LOCguard.go ×2suite.go ×2 · 3 introduced LOCsuite.go ×2suite.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 ×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/goro/adaptive_pool.go · 138 LOCgoro/adaptive_pool.gogo.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.…go.temporal.io/server/tests/testcore/test_env.go · 681 LOCtestcore/test_env.goTestOperatorServiceMetadata · introduced test · go.temporal.io/server/common/api/TestOperatorServiceMetadataTestOperatorServiceMetad…TestWorkflowServiceMetadata · introduced test · go.temporal.io/server/common/api/TestWorkflowServiceMetadataTestWorkflowServiceMetad…TestCallsF · introduced test · go.temporal.io/server/common/goro/TestAdaptivePoolSuite/TestCallsFTestCallsFTestDoesntGrowPastMax · introduced test · go.temporal.io/server/common/goro/TestAdaptivePoolSuite/TestDoesntGrowPastMaxTestDoesntGrowPastMaxTestGrows · introduced test · go.temporal.io/server/common/goro/TestAdaptivePoolSuite/TestGrowsTestGrowsTestShrinksAgain · introduced test · go.temporal.io/server/common/goro/TestAdaptivePoolSuite/TestShrinksAgainTestShrinksAgainno_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/subtestsubtestTestAwaitTrue · introduced test · go.temporal.io/server/common/testing/parallelsuite/TestRun_AcceptsSuite/await_true/TestAwaitTrueTestAwaitTrueTestAwaitTrueFalseRetry · introduced test · go.temporal.io/server/common/testing/parallelsuite/TestRun_AcceptsSuite/await_true/TestAwaitTrueFalseRetryTestAwaitTrueFalseRetryTestAwaitTruef · introduced test · go.temporal.io/server/common/testing/parallelsuite/TestRun_AcceptsSuite/await_true/TestAwaitTruefTestAwaitTruefTestAwaitUsesSuiteContext · introduced test · go.temporal.io/server/common/testing/parallelsuite/TestRun_AcceptsSuite/context/TestAwaitUsesSuiteContextTestAwaitUsesSuiteContex…TestContextHasDeadline · introduced test · go.temporal.io/server/common/testing/parallelsuite/TestRun_AcceptsSuite/context/TestContextHasDeadlineTestContextHasDeadlineTestA · introduced test · go.temporal.io/server/common/testing/parallelsuite/TestRun_AcceptsSuite/legacy/TestATestATestA · introduced test · go.temporal.io/server/common/testing/parallelsuite/TestRun_AcceptsSuite/no_args/TestATestATestA · introduced test · go.temporal.io/server/common/testing/parallelsuite/TestRun_AcceptsSuite/with_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_…TestDedicatedClusterGuard_ConcurrentRecord · introduced test · go.temporal.io/server/tests/testcore/TestTestEnvSuite/TestDedicatedClusterGuard_ConcurrentRecordTestDedicatedClusterGuar…TestDedicatedClusterGuard_FailsWhenUnused · introduced test · go.temporal.io/server/tests/testcore/TestTestEnvSuite/TestDedicatedClusterGuard_FailsWhenUnusedTestDedicatedClusterGuar…TestDedicatedClusterGuard_NoErrorAfterUse · introduced test · go.temporal.io/server/tests/testcore/TestTestEnvSuite/TestDedicatedClusterGuard_NoErrorAfterUseTestDedicatedClusterGuar…TestDedicatedClusterGuard_NoErrorWithoutExplicitRequest · introduced test · go.temporal.io/server/tests/testcore/TestTestEnvSuite/TestDedicatedClusterGuard_NoErrorWithoutExplicitRequestTestDedicatedClusterGuar…Focused concept · suite.go ×5 · 35 introduced LOCsuite.go ×5

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: 35 introduced LOC across 5 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/common/testing/parallelsuite/suite.go 35 introduced LOC · 5 ranges

Open complete file

74 //
75 //nolint:revive // ctx is last so callers can pass nil to mean "no override"; SA1012 forbids passing nil as the first ctx arg.
76 > func (s *Suite[T]) copySuite(t *testing.T, parallel bool, assertT require.TestingT, ctx context.Context) testingSuite { suite.go
77 > cp := reflect.New(reflect.TypeFor[T]().Elem()).Interface().(T)
78 > cp.initSuite(t, parallel, assertT, ctx)
79 > return cp
80 > }
81
82 //nolint:revive // see copySuite above.
83 > func (s *Suite[T]) initSuite(t *testing.T, parallel bool, assertT require.TestingT, ctx context.Context) { suite.go
84 > g := &s.guardT
85 > g.name = t.Name()
86 > g.T = t
87 > g.hasSubtests.Store(false)
88 > s.runParallel = parallel
89 > s.ctx = ctx
90 > s.ctxOnce = sync.Once{}
91 > if s.runParallel {
92 > t.Parallel() //nolint:testifylint // parallelsuite intentionally supports parallel tests
93 > }
94 > if assertT == nil {
95 > assertT = g
96 > }
97 > s.assertT = assertT
98 > s.Assertions = require.New(assertT)
99 > s.ProtoAssertions = protorequire.New(assertT)
100 > s.HistoryRequire = historyrequire.New(assertT)
101 }
102
205 }
206
207 > methods = applyTestifyMFilter(methods) suite.go
208 > if len(methods) == 0 {
209 return // all methods filtered by -testify.m; nothing to run
210 }
211
212 > argVals := make([]reflect.Value, len(args)) suite.go
213 > for i, a := range args {
214 argVals[i] = reflect.ValueOf(a)
215 }
216
217 > s.initSuite(t, true, nil, nil) suite.go
218 >
219 > for _, method := range methods {
220 > t.Run(method.Name, func(t *testing.T) {
221 > cpS := s.copySuite(t, methodsParallel, nil, nil)
222 > callArgs := append([]reflect.Value{reflect.ValueOf(cpS)}, argVals...)
223 > method.Func.Call(callArgs)
224 > })
225 }
226 }