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

Method CheckConsume

annotation/consume_trigger.go:240–243  ·  view source on GitHub ↗

CheckConsume returns true if the underlying annotation is present in the passed map and deeply nonnil

(annMap Map)

Source from the content-addressed store, hash-verified

238
239// CheckConsume returns true if the underlying annotation is present in the passed map and deeply nonnil
240func (t *TriggerIfDeepNonNil) CheckConsume(annMap Map) bool {
241 ann, ok := t.Ann.Lookup(annMap)
242 return ok && !ann.IsDeepNilable
243}
244
245// customPos has the below default implementation for TriggerIfDeepNonNil, in which case ConsumeTrigger.Pos() will return a default value.
246// To return non-default position values, this method should be overridden appropriately.

Callers

nothing calls this directly

Calls 1

LookupMethod · 0.65

Tested by

no test coverage detected