testrunner.go ×8

Frontier kind: Code frontier

unlabeled · c_e26137d52335

2 tests · 66 LOC · 3 files · introduces 0 tests · 18 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
8 ranges18 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
29 ranges66 lines · 3 files · Browse complete extent
All tests (intent)
2 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 specializationtestrunner.go ×5 · 7 introduced LOCtestrunner.go ×5testrunner.go ×1 · 3 introduced LOCtestrunner.go ×1testrunner.go ×1 · 1 introduced LOCtestrunner.go ×1testrunner.go ×2 · 2 introduced LOCtestrunner.go ×2summary.go ×4 · 11 introduced LOCsummary.go ×4testrunner.go ×4 · 4 introduced LOCtestrunner.go ×4testrunner.go ×1 · 2 introduced LOCtestrunner.go ×1junit.go ×3 · 10 introduced LOCjunit.go ×3junit.go ×3 · 8 introduced LOCjunit.go ×3testrunner.go ×1 · 1 introduced LOCtestrunner.go ×1testrunner.go ×1 · 3 introduced LOCtestrunner.go ×1testrunner.go ×1 · 6 introduced LOCtestrunner.go ×1TestOperatorServiceMetadata, TestWorkflowServiceMetadata · 0 introduced LOCTestOperatorServiceMetad…go.temporal.io/server/tools/testrunner/junit.go · 369 LOCtestrunner/junit.gogo.temporal.io/server/tools/testrunner/summary.go · 127 LOCtestrunner/summary.gogo.temporal.io/server/tools/testrunner/testrunner.go · 480 LOCtestrunner/testrunner.goTestOperatorServiceMetadata · introduced test · go.temporal.io/server/common/api/TestOperatorServiceMetadataTestOperatorServiceMetad…TestWorkflowServiceMetadata · introduced test · go.temporal.io/server/common/api/TestWorkflowServiceMetadataTestWorkflowServiceMetad…TestNewSummaryFromReports_EmptyWhenNoFailures · introduced test · go.temporal.io/server/tools/testrunner/TestNewSummaryFromReports_EmptyWhenNoFailuresTestNewSummaryFromReport…TestRunnerPrintSummary · introduced test · go.temporal.io/server/tools/testrunner/TestRunnerPrintSummaryTestRunnerPrintSummaryTestRunnerPrintSummarySkipsEmptySummary · introduced test · go.temporal.io/server/tools/testrunner/TestRunnerPrintSummarySkipsEmptySummaryTestRunnerPrintSummarySk…Focused concept · testrunner.go ×8 · 18 introduced LOCtestrunner.go ×8

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

go.temporal.io/server/tools/testrunner/testrunner.go 18 introduced LOC · 8 ranges

Open complete file

133
134 if strings.HasPrefix(arg, junitGlobFlag) {
135 > r.junitGlob = strings.Split(arg, "=")[1] testrunner.go
136 > continue
137 }
138 if strings.HasPrefix(arg, summaryOutputDirFlag) {
139 > r.summaryOutputDir = strings.Split(arg, "=")[1] testrunner.go
140 > if command != summaryCommand {
141 return nil, fmt.Errorf("argument %q is only valid for command %q", summaryOutputDirFlag, summaryCommand)
142 }
143 > continue testrunner.go
144 }
145 if strings.HasPrefix(arg, coverProfileFlag) {
175 return nil, fmt.Errorf("missing required argument %q", junitGlobFlag)
176 }
177 > if r.summaryOutputDir == "" { testrunner.go
178 return nil, fmt.Errorf("missing required argument %q", summaryOutputDirFlag)
179 }
256 }
257
258 > func (r *runner) generateSummary() error { testrunner.go
259 > paths, err := filepath.Glob(r.junitGlob)
260 > if err != nil {
261 return fmt.Errorf("failed to expand junit glob %q: %w", r.junitGlob, err)
262 }
263 > slices.Sort(paths) testrunner.go
264 >
265 > reports := make([]*junitReport, 0, len(paths))
266 > for _, path := range paths {
267 > report := &junitReport{path: path}
268 > if err := report.read(); err != nil {
269 return fmt.Errorf("failed to read junit report %q: %w", path, err)
270 }
271 > reports = append(reports, report) testrunner.go
272 }
273
274 > summary := newSummaryFromReports(reports) testrunner.go
275 > if len(summary.Rows) == 0 {
276 fmt.Println("no failed tests found in junit reports; skipping test summary")
277 return nil