convert.go ×4

Frontier kind: Joint frontier

unlabeled · c_ec67d51980e0

3 tests · 2520 LOC · 127 files · introduces 1 test · 18 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
5 ranges18 lines · 2 files
Tests
1 test

Contains — complete concept membership

All code (extent)
377 ranges2520 lines · 127 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.

1 test introduced at this concept.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

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

go.temporal.io/server/service/history/queues/convert.go 13 introduced LOC · 4 ranges

Open complete file

107 case *predicates.UniversalImpl[tasks.Task]:
108 return ToPersistenceUniversalPredicate(predicate)
109 > case *predicates.EmptyImpl[tasks.Task]: convert.go
110 > return ToPersistenceEmptyPredicate(predicate)
111 case *predicates.AndImpl[tasks.Task]:
112 return ToPersistenceAndPredicate(predicate)
136 case enumsspb.PREDICATE_TYPE_UNIVERSAL:
137 return FromPersistenceUniversalPredicate(predicate.GetUniversalPredicateAttributes())
138 > case enumsspb.PREDICATE_TYPE_EMPTY: convert.go
139 > return FromPersistenceEmptyPredicate(predicate.GetEmptyPredicateAttributes())
140 case enumsspb.PREDICATE_TYPE_AND:
141 return FromPersistenceAndPredicate(predicate.GetAndPredicateAttributes())
176 func ToPersistenceEmptyPredicate(
177 _ *predicates.EmptyImpl[tasks.Task],
178 > ) *persistencespb.Predicate { convert.go
179 > return &persistencespb.Predicate{
180 > PredicateType: enumsspb.PREDICATE_TYPE_EMPTY,
181 > Attributes: &persistencespb.Predicate_EmptyPredicateAttributes{},
182 > }
183 > }
184
185 func FromPersistenceEmptyPredicate(
186 _ *persistencespb.EmptyPredicateAttributes,
187 > ) tasks.Predicate { convert.go
188 > return predicates.Empty[tasks.Task]()
189 > }
190
191 func ToPersistenceAndPredicate(
go.temporal.io/server/api/persistence/v1/predicates.pb.go 5 introduced LOC · 1 range

Open complete file

97 }
98
99 > func (x *Predicate) GetEmptyPredicateAttributes() *EmptyPredicateAttributes { predicates.pb.go
100 > if x != nil {
101 > if x, ok := x.Attributes.(*Predicate_EmptyPredicateAttributes); ok {
102 > return x.EmptyPredicateAttributes
103 > }
104 }
105 return nil