log.go ×4

Frontier kind: Code frontier

unlabeled · c_0c0d8c8f8c17

21 tests · 15 LOC · 1 file · introduces 0 tests · 15 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
4 ranges15 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
4 ranges15 lines · 1 file · Browse complete extent
All tests (intent)
21 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 ×6 · 30 introduced LOCtestrunner.go ×6TestRenderSummaryFromReports_JSON · 0 introduced LOCTestRenderSummaryFromRep…TestNewSummaryFromReports_KeepsFailureAndAlertRows · 0 introduced LOCTestNewSummaryFromReport…TestMergeReports_MissingRerun · 0 introduced LOCTestMergeReports_Missing…TestMergeReports_MultipleReports · 0 introduced LOCTestMergeReports_Multipl…TestRenderSummaryFromReports_Markdown_RendersTrimmedFailureBody · 0 introduced LOCTestRenderSummaryFromRep…TestNewSummaryFromReports_RendersAssertionFailureRow · 0 introduced LOCTestNewSummaryFromReport…TestNewSummaryFromReports_RendersTrimmedFailureBodyRow · 0 introduced LOCTestNewSummaryFromReport…junit.go ×1 · 2 introduced LOCjunit.go ×1junit.go ×2 · 5 introduced LOCjunit.go ×2TestMergeReports_IterationSuffixPreserved · 0 introduced LOCTestMergeReports_Iterati…junit.go ×4 · 18 introduced LOCjunit.go ×4TestMergeReports_PreservesOriginalFailureDataWhenExtractionFindsNothing · 0 introduced LOCTestMergeReports_Preserv…junit.go ×1 · 1 introduced LOCjunit.go ×1junit.go ×1 · 2 introduced LOCjunit.go ×1junit.go ×1 · 2 introduced LOCjunit.go ×1junit.go ×1 · 3 introduced LOCjunit.go ×1junit.go ×10 · 42 introduced LOCjunit.go ×10log.go ×1 · 2 introduced LOClog.go ×1log.go ×2 · 4 introduced LOClog.go ×2log.go ×1 · 1 introduced LOClog.go ×1log.go ×1 · 2 introduced LOClog.go ×1log.go ×2 · 7 introduced LOClog.go ×2log.go ×7 · 17 introduced LOClog.go ×7log.go ×1 · 2 introduced LOClog.go ×1returns_sentinel_when_no_output_exists · 0 introduced LOCreturns_sentinel_when_no…log.go ×1 · 3 introduced LOClog.go ×1log.go ×2 · 2 introduced LOClog.go ×2log.go ×1 · 3 introduced LOClog.go ×1log.go ×3 · 4 introduced LOClog.go ×3log.go ×3 · 5 introduced LOClog.go ×3log.go ×1 · 1 introduced LOClog.go ×1TestOperatorServiceMetadata, TestWorkflowServiceMetadata · 0 introduced LOCTestOperatorServiceMetad…go.temporal.io/server/tools/testrunner/junit.go · 369 LOCtestrunner/junit.gogo.temporal.io/server/tools/testrunner/log.go · 444 LOCtestrunner/log.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…TestMergeReports_IterationSuffixPreserved · introduced test · go.temporal.io/server/tools/testrunner/TestMergeReports_IterationSuffixPreservedTestMergeReports_Iterati…TestMergeReports_MissingRerun · introduced test · go.temporal.io/server/tools/testrunner/TestMergeReports_MissingRerunTestMergeReports_Missing…TestMergeReports_MultipleReports · introduced test · go.temporal.io/server/tools/testrunner/TestMergeReports_MultipleReportsTestMergeReports_Multipl…TestMergeReports_PreservesAlertFailureMessage · introduced test · go.temporal.io/server/tools/testrunner/TestMergeReports_PreservesAlertFailureMessageTestMergeReports_Preserv…TestMergeReports_PreservesOriginalFailureDataWhenExtractionFindsNothing · introduced test · go.temporal.io/server/tools/testrunner/TestMergeReports_PreservesOriginalFailureDataWhenExtractionFindsNothingTestMergeReports_Preserv…TestMergeReports_SingleReport · introduced test · go.temporal.io/server/tools/testrunner/TestMergeReports_SingleReportTestMergeReports_SingleR…TestNewSummaryFromReports_KeepsFailureAndAlertRows · introduced test · go.temporal.io/server/tools/testrunner/TestNewSummaryFromReports_KeepsFailureAndAlertRowsTestNewSummaryFromReport…TestNewSummaryFromReports_RendersAssertionFailureRow · introduced test · go.temporal.io/server/tools/testrunner/TestNewSummaryFromReports_RendersAssertionFailureRowTestNewSummaryFromReport…TestNewSummaryFromReports_RendersTrimmedFailureBodyRow · introduced test · go.temporal.io/server/tools/testrunner/TestNewSummaryFromReports_RendersTrimmedFailureBodyRowTestNewSummaryFromReport…extracts_testify_block · introduced test · go.temporal.io/server/tools/testrunner/TestParseFailureDetails/extracts_testify_blockextracts_testify_blockkeeps_last_await_attempt_without_trailing_logs · introduced test · go.temporal.io/server/tools/testrunner/TestParseFailureDetails/keeps_last_await_attempt_without_trailing_logskeeps_last_await_attempt…keeps_testify_file_header_line · introduced test · go.temporal.io/server/tools/testrunner/TestParseFailureDetails/keeps_testify_file_header_linekeeps_testify_file_heade…returns_sentinel_when_no_output_exists · introduced test · go.temporal.io/server/tools/testrunner/TestParseFailureDetails/returns_sentinel_when_no_output_existsreturns_sentinel_when_no…stops_before_logs_printed_after_assertion_block · introduced test · go.temporal.io/server/tools/testrunner/TestParseFailureDetails/stops_before_logs_printed_after_assertion_blockstops_before_logs_printe…strips_trailing_FAIL_marker · introduced test · go.temporal.io/server/tools/testrunner/TestParseFailureDetails/strips_trailing_FAIL_markerstrips_trailing_FAIL_mar…uses_last_failure_block_when_multiple_exist · introduced test · go.temporal.io/server/tools/testrunner/TestParseFailureDetails/uses_last_failure_block_when_multiple_existuses_last_failure_block_…uses_last_gomock_style_block · introduced test · go.temporal.io/server/tools/testrunner/TestParseFailureDetails/uses_last_gomock_style_blockuses_last_gomock_style_b…TestRenderSummaryFromReports_JSON · introduced test · go.temporal.io/server/tools/testrunner/TestRenderSummaryFromReports_JSONTestRenderSummaryFromRep…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…TestWriteCurrentReport · introduced test · go.temporal.io/server/tools/testrunner/TestWriteCurrentReportTestWriteCurrentReportFocused concept · log.go ×4 · 15 introduced LOClog.go ×4

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

go.temporal.io/server/tools/testrunner/log.go 15 introduced LOC · 4 ranges

Open complete file

344
345 // parseFailureDetails extracts the actionable part of a JUnit failure Data block.
346 > func parseFailureDetails(data string) string { log.go
347 > lines := normalizedFailureLines(data)
348 >
349 > // Prefer assertion blocks because they contain the useful testify failure
350 > // detail and can be selected from the end while ignoring trailing logs.
351 > if block, ok := findLastAssertionFailureBlock(lines); ok {
352 return block
353 }
360 }
361
362 > func normalizedFailureLines(data string) []string { log.go
363 > lines := strings.Split(strings.ReplaceAll(data, "\r\n", "\n"), "\n")
364 > for len(lines) > 0 {
365 > t := strings.TrimSpace(lines[len(lines)-1])
366 > if t != "" && t != "FAIL" {
367 break
368 }
369 lines = lines[:len(lines)-1]
370 }
371 > return lines log.go
372 }
373
374 > func findLastAssertionFailureBlock(lines []string) (string, bool) { log.go
375 > var failLine string
376 > for i := len(lines) - 1; i >= 0; i-- {
377 line := strings.TrimSpace(lines[i])
378 if failLine == "" && strings.HasPrefix(line, goTestFailLinePrefix) {