tree.go ×3

Frontier kind: Code frontier

unlabeled · c_201862e1a8a0

3 tests · 2826 LOC · 99 files · introduces 0 tests · 25 LOC · 3 files

Introduces — evidence that enters the hierarchy at this concept

Code
5 ranges25 lines · 3 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
540 ranges2826 lines · 99 files · Browse complete extent
All tests (intent)
3 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.

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.

3 files ranked by introduced lines: 25 introduced LOC across 5 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/common/softassert/serviceerror.go 14 introduced LOC · 1 range

Open complete file

19 // It also logs `staticMessage` using softassert.Fail.
20 // `optionalErr` is added as a tag with key "softassert-error-details".
21 > func UnexpectedInternalErr(logger log.Logger, staticMessage string, optionalErr error, tags ...tag.Tag) error { serviceerror.go
22 > // (1) trigger softassert
23 > combinedTags := tags
24 > if optionalErr != nil {
25 > combinedTags = append([]tag.Tag{tag.NewErrorTag(errorDetailsTagName, optionalErr)}, tags...)
26 > }
27 > Fail(logger, staticMessage, combinedTags...)
28 >
29 > // (2) return serviceerror
30 > message := staticMessage
31 > if optionalErr != nil {
32 > message = fmt.Sprintf("%s: %s", staticMessage, optionalErr)
33 > }
34 > return serviceerror.NewInternal(message)
35 }
36
go.temporal.io/server/chasm/tree.go 9 introduced LOC · 3 ranges

Open complete file

1705 if n.needsPointerResolution {
1706 if err := n.resolveDeferredPointers(); err != nil {
1707 > return NodesMutation{}, err tree.go
1708 > }
1709 }
1710
2425 }
2426 if err != nil {
2427 > return softassert.UnexpectedInternalErr( tree.go
2428 > n.logger,
2429 > "failed to resolve deferred pointer during transaction close",
2430 > err)
2431 > }
2432
2433 // Update the field to be a regular pointer, reusing the existing serializedNode,
2453 }
2454 if !yield(path, node) {
2455 > return false tree.go
2456 > }
2457 for _, child := range node.children {
2458 childPath := make([]string, len(path)+1)
go.temporal.io/server/chasm/fields_iterator.go 2 introduced LOC · 1 range

Open complete file

91
92 if !yield(fieldInfo{val: fieldV, typ: fieldT, name: fieldN, kind: fieldK, err: fieldErr}) {
93 > return fields_iterator.go
94 > }
95 }
96 // If the data field is not found, generate one more fake field with only an error set.