log.go ×7

Frontier kind: Code frontier

unlabeled · c_46db35def2cd

10 tests · 38 LOC · 1 file · introduces 0 tests · 17 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
7 ranges17 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
15 ranges38 lines · 1 file · Browse complete extent
All tests (intent)
10 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 ×6 · 30 introduced LOCtestrunner.go ×6TestMergeReports_MissingRerun · 0 introduced LOCTestMergeReports_Missing…TestMergeReports_MultipleReports · 0 introduced LOCTestMergeReports_Multipl…TestNewSummaryFromReports_RendersAssertionFailureRow · 0 introduced LOCTestNewSummaryFromReport…junit.go ×1 · 2 introduced LOCjunit.go ×1log.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 ×3 · 5 introduced LOClog.go ×3log.go ×1 · 1 introduced LOClog.go ×1log.go ×4 · 15 introduced LOClog.go ×4TestOperatorServiceMetadata, 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/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_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_SingleReport · introduced test · go.temporal.io/server/tools/testrunner/TestMergeReports_SingleReportTestMergeReports_SingleR…TestNewSummaryFromReports_RendersAssertionFailureRow · introduced test · go.temporal.io/server/tools/testrunner/TestNewSummaryFromReports_RendersAssertionFailureRowTestNewSummaryFromReport…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…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…TestWriteCurrentReport · introduced test · go.temporal.io/server/tools/testrunner/TestWriteCurrentReportTestWriteCurrentReportFocused concept · log.go ×7 · 17 introduced LOClog.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: 17 introduced LOC across 7 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/tools/testrunner/log.go 17 introduced LOC · 7 ranges

Open complete file

350 // detail and can be selected from the end while ignoring trailing logs.
351 if block, ok := findLastAssertionFailureBlock(lines); ok {
352 > return block log.go
353 > }
354 // Some failures, such as gomock errors, do not include an Error Trace.
355 // Fall back to the last Go test output block in those cases.
387 // Include the nearest preceding line when present. For testify this is
388 // the file header; for await failures this is the attempt marker.
389 > start := i log.go
390 > for prev := i - 1; prev >= 0; prev-- {
391 > if strings.TrimSpace(lines[prev]) != "" {
392 > start = prev
393 > break
394 }
395 }
396 > out := append([]string{}, lines[start:endOfAssertionBlock(lines, i+1)]...) log.go
397 > if failLine != "" {
398 out = append(out, "", failLine)
399 }
400 > return strings.Join(out, "\n"), true log.go
401 }
402 return "", false
403 }
404
405 > func endOfAssertionBlock(lines []string, start int) int { log.go
406 > sawTestLine := false
407 > for i := start; i < len(lines); i++ {
408 > line := strings.TrimSpace(lines[i])
409 > if line == "" || strings.HasPrefix(line, goTestFailLinePrefix) {
410 return i
411 }
412 > if strings.HasPrefix(line, "Test:") { log.go
413 sawTestLine = true
414 continue
415 }
416 // Logs written after the Test line are not part of the assertion block.
417 > if sawTestLine && isTestOutputLine(lines[i]) { log.go
418 return i
419 }