summary.go ×7

Frontier kind: Code frontier

unlabeled · c_94b919df5936

6 tests · 30 LOC · 1 file · introduces 0 tests · 28 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
7 ranges28 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
8 ranges30 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 specializationsummary.go ×1 · 2 introduced LOCsummary.go ×1testrunner.go ×5 · 7 introduced LOCtestrunner.go ×5TestRenderSummaryFromReports_Markdown_RendersTrimmedFailureBody · 0 introduced LOCTestRenderSummaryFromRep…TestRenderSummaryFromReports_Markdown_RendersAlertRow · 0 introduced LOCTestRenderSummaryFromRep…summary.go ×1 · 2 introduced LOCsummary.go ×1summary.go ×1 · 3 introduced LOCsummary.go ×1summary.go ×1 · 2 introduced LOCsummary.go ×1TestOperatorServiceMetadata, TestWorkflowServiceMetadata · 0 introduced LOCTestOperatorServiceMetad…go.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…TestRenderSummaryFromReports_Markdown_OmitsRowsWhenBudgetExceeded · introduced test · go.temporal.io/server/tools/testrunner/TestRenderSummaryFromReports_Markdown_OmitsRowsWhenBudgetExceededTestRenderSummaryFromRep…TestRenderSummaryFromReports_Markdown_RendersAlertRow · introduced test · go.temporal.io/server/tools/testrunner/TestRenderSummaryFromReports_Markdown_RendersAlertRowTestRenderSummaryFromRep…TestRenderSummaryFromReports_Markdown_RendersFailureRows · introduced test · go.temporal.io/server/tools/testrunner/TestRenderSummaryFromReports_Markdown_RendersFailureRowsTestRenderSummaryFromRep…TestRenderSummaryFromReports_Markdown_RendersTrimmedFailureBody · introduced test · go.temporal.io/server/tools/testrunner/TestRenderSummaryFromReports_Markdown_RendersTrimmedFailureBodyTestRenderSummaryFromRep…TestRenderSummaryFromReports_Markdown_ShowsTruncatedDetail · introduced test · go.temporal.io/server/tools/testrunner/TestRenderSummaryFromReports_Markdown_ShowsTruncatedDetailTestRenderSummaryFromRep…TestRunnerPrintSummary · introduced test · go.temporal.io/server/tools/testrunner/TestRunnerPrintSummaryTestRunnerPrintSummaryFocused concept · summary.go ×7 · 28 introduced LOCsummary.go ×7

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

go.temporal.io/server/tools/testrunner/summary.go 28 introduced LOC · 7 ranges

Open complete file

30 }
31
32 > var sb strings.Builder summary.go
33 > sb.WriteString("<table>\n<tr><th>Kind</th><th>Test</th></tr>\n")
34 >
35 > // Reserve bytes for the closing tag so we can always finish the table.
36 > const tableClose = "</table>\n"
37 > budget := summaryMarkdownMaxBytes - sb.Len() - len(tableClose)
38 >
39 > written := 0
40 > for _, row := range s.Rows {
41 > rendered := row.Markdown()
42 > if len(rendered) > budget {
43 omitted := len(s.Rows) - written
44 fmt.Fprintf(&sb, "<tr><td colspan=\"2\">… %d failure(s) not shown — see full output in job logs</td></tr>\n", omitted)
45 break
46 }
47 > sb.WriteString(rendered) summary.go
48 > budget -= len(rendered)
49 > written++
50 }
51
52 > sb.WriteString(tableClose) summary.go
53 > return sb.String()
54 }
55
105
106 // Markdown renders one summary table row.
107 > func (row summaryRow) Markdown() string { summary.go
108 > kind := string(row.Kind)
109 > if row.Final {
110 kind = "❌ " + kind
111 }
112
113 > var sb strings.Builder summary.go
114 > fmt.Fprintf(&sb, "<tr><td>%s</td><td>", html.EscapeString(kind))
115 > if row.Details != "" {
116 > escaped := html.EscapeString(row.Details)
117 > if strings.Contains(row.Details, summaryTruncatedMarker) {
118 escaped += "\n… (truncated — see full output in job logs)"
119 }
120 > fmt.Fprintf(&sb, "<details><summary>%s</summary><pre>%s</pre></details>", summary.go
121 > html.EscapeString(row.Name), escaped)
122 } else {
123 sb.WriteString(html.EscapeString(row.Name))
124 }
125 > sb.WriteString("</td></tr>\n") summary.go
126 > return sb.String()
127 }