MCPcopy
hub / github.com/uber-go/nilaway / CheckProduce

Method CheckProduce

annotation/produce_trigger.go:42–42  ·  view source on GitHub ↗

CheckProduce can be called to determined whether this trigger should be triggered given a particular Annotation map for example - a `FuncReturn` trigger triggers iff the corresponding function has nilable return type

(Map)

Source from the content-addressed store, hash-verified

40 // for example - a `FuncReturn` trigger triggers iff the corresponding function has
41 // nilable return type
42 CheckProduce(Map) bool
43
44 // NeedsGuardMatch returns whether this production is contingent on being
45 // paired with a guarded consumer.

Callers 2

checkErrorsFunction · 0.65
CheckMethod · 0.65

Implementers 5

TriggerIfNilableannotation/produce_trigger.go
TriggerIfDeepNilableannotation/produce_trigger.go
ProduceTriggerTautologyannotation/produce_trigger.go
ProduceTriggerNeverannotation/produce_trigger.go
mockProducingAnnotationTriggerannotation/helper_test.go

Calls

no outgoing calls

Tested by

no test coverage detected