go.temporal.io/server/common/predicates/empty.go

36 LOC · 10 covered · 26 uncovered · 3 ranges · 28 concepts · 3 introducers · 18 tests

File neighbourhood

The centred file is linked to every concept that introduces one of its ranges, every test that runs code from the file, and the gray connector concepts standing between those tests and the file's own introducer concepts. Undirected links join concepts to every file where they introduce source and concepts to the tests they introduce; arrows show specialization between the displayed concepts and bridge only concepts omitted from this view. Concept colors match the source ranges below; connector concepts have no source color and are shown in gray.

Focused file, its introducer and connector concepts, their introduced files, and tests that run code from the file

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 related-file, concept, and source links on this page.

Focused file, its introducer and connector concepts, their introduced files, and tests that run code from the fileaction_move_group.go ×11 · 84 introduced LOCaction_move_group.go ×11reader.go ×1 · 2 introduced LOCreader.go ×1TestAppendSlices · 0 introduced LOCTestAppendSlicesscope.go ×1 · 2 introduced LOCscope.go ×1convert.go ×4 · 22 introduced LOCconvert.go ×4TestConvertPredicate_And · 0 introduced LOCTestConvertPredicate_AndTestConvertPredicate_Or · 0 introduced LOCTestConvertPredicate_Orconvert.go ×10 · 56 introduced LOCconvert.go ×10TestSplitByPredicate_SamePredicateType · 0 introduced LOCTestSplitByPredicate_Sam…convert.go ×4 · 18 introduced LOCconvert.go ×4predicates.go ×7 · 35 introduced LOCpredicates.go ×7predicates.go ×1 · 2 introduced LOCpredicates.go ×1predicates.go ×1 · 2 introduced LOCpredicates.go ×1and.go ×1 · 2 introduced LOCand.go ×1or.go ×1 · 2 introduced LOCor.go ×1and.go ×2 · 4 introduced LOCand.go ×2and.go ×1 · 1 introduced LOCand.go ×1TestUniversal_Equals · 0 introduced LOCTestUniversal_Equalsempty.go ×1 · 4 introduced LOCempty.go ×1not.go ×1 · 6 introduced LOCnot.go ×1or.go ×2 · 4 introduced LOCor.go ×2not.go ×1 · 2 introduced LOCnot.go ×1TestAnd_None · 0 introduced LOCTestAnd_Noneand.go ×1 · 2 introduced LOCand.go ×1not.go ×1 · 2 introduced LOCnot.go ×1not.go ×1 · 2 introduced LOCnot.go ×1empty.go ×1 · 3 introduced LOCempty.go ×1empty.go ×1 · 3 introduced LOCempty.go ×1TestAnd_Equals · introduced test · go.temporal.io/server/common/predicates/TestAndSuite/TestAnd_EqualsTestAnd_EqualsTestAnd_None · introduced test · go.temporal.io/server/common/predicates/TestAndSuite/TestAnd_NoneTestAnd_NoneTestEmpty_Equals · introduced test · go.temporal.io/server/common/predicates/TestNoneSuite/TestEmpty_EqualsTestEmpty_EqualsTestEmpty_Test · introduced test · go.temporal.io/server/common/predicates/TestNoneSuite/TestEmpty_TestTestEmpty_TestTestNot_Equals · introduced test · go.temporal.io/server/common/predicates/TestNotSuite/TestNot_EqualsTestNot_EqualsTestNot_Test · introduced test · go.temporal.io/server/common/predicates/TestNotSuite/TestNot_TestTestNot_TestTestOr_Equals · introduced test · go.temporal.io/server/common/predicates/TestOrSuite/TestOr_EqualsTestOr_EqualsTestOr_None · introduced test · go.temporal.io/server/common/predicates/TestOrSuite/TestOr_NoneTestOr_NoneTestUniversal_Equals · introduced test · go.temporal.io/server/common/predicates/TestUniversalSuite/TestUniversal_EqualsTestUniversal_EqualsTestConvertPredicate_And · introduced test · go.temporal.io/server/service/history/queues/TestConvertSuite/TestConvertPredicate_AndTestConvertPredicate_AndTestConvertPredicate_Empty · introduced test · go.temporal.io/server/service/history/queues/TestConvertSuite/TestConvertPredicate_EmptyTestConvertPredicate_Emp…TestConvertPredicate_Not · introduced test · go.temporal.io/server/service/history/queues/TestConvertSuite/TestConvertPredicate_NotTestConvertPredicate_NotTestConvertPredicate_Or · introduced test · go.temporal.io/server/service/history/queues/TestConvertSuite/TestConvertPredicate_OrTestConvertPredicate_OrTestCheckPoint_MoveTaskGroupAction · introduced test · go.temporal.io/server/service/history/queues/TestQueueBaseSuite/TestCheckPoint_MoveTaskGroupActionTestCheckPoint_MoveTaskG…TestAppendSlices · introduced test · go.temporal.io/server/service/history/queues/TestReaderSuite/TestAppendSlicesTestAppendSlicesTestMergeSlices · introduced test · go.temporal.io/server/service/history/queues/TestReaderSuite/TestMergeSlicesTestMergeSlicesTestSplitByPredicate_SamePredicateType · introduced test · go.temporal.io/server/service/history/queues/TestScopeSuite/TestSplitByPredicate_SamePredicateTypeTestSplitByPredicate_Sam…TestAndPredicates · introduced test · go.temporal.io/server/service/history/tasks/TestPredicateSuite/TestAndPredicatesTestAndPredicatesFocused file · go.temporal.io/server/common/predicates/empty.go · 36 LOCpredicates/empty.go

Graph controls are ready.

Interactive rendering requires JavaScript and WebGL. Use the related-file, concept, and source links on this page while the interactive map is unavailable.

1 package predicates
2
3 import (
4 enumsspb "go.temporal.io/server/api/enums/v1"
5 persistencespb "go.temporal.io/server/api/persistence/v1"
6 )
7
8 type (
9 EmptyImpl[T any] struct{}
10 )
11
12 var EmptyPredicateProtoSize = (&persistencespb.Predicate{
13 PredicateType: enumsspb.PREDICATE_TYPE_EMPTY,
14 Attributes: &persistencespb.Predicate_EmptyPredicateAttributes{
15 EmptyPredicateAttributes: &persistencespb.EmptyPredicateAttributes{},
16 },
17 }).Size()
18
19 > func Empty[T any]() Predicate[T] { empty.go ×1
20 > return &EmptyImpl[T]{}
21 > }
22
23 > func (n *EmptyImpl[T]) Test(t T) bool { empty.go ×1
24 > return false
25 > }
26
27 func (n *EmptyImpl[T]) Equals(
28 predicate Predicate[T],
29 > ) bool { empty.go ×1
30 > _, ok := predicate.(*EmptyImpl[T])
31 > return ok
32 > }
33
34 func (*EmptyImpl[T]) Size() int {
35 return EmptyPredicateProtoSize
36 }