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

Method CheckProduce

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

CheckProduce returns true if the underlying annotation is present in the passed map and deeply nilable

(annMap Map)

Source from the content-addressed store, hash-verified

132
133// CheckProduce returns true if the underlying annotation is present in the passed map and deeply nilable
134func (t *TriggerIfDeepNilable) CheckProduce(annMap Map) bool {
135 ann, ok := t.Ann.Lookup(annMap)
136 return ok && ann.IsDeepNilable
137}
138
139// NeedsGuardMatch returns true if this trigger needs to be matched with a guarded consumer
140func (t *TriggerIfDeepNilable) NeedsGuardMatch() bool { return t.NeedsGuard }

Callers

nothing calls this directly

Calls 1

LookupMethod · 0.65

Tested by

no test coverage detected