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

Method Check

annotation/full_trigger.go:57–60  ·  view source on GitHub ↗

Check is a boolean test that determines whether this FullTrigger should be triggered against the Annotation map `annMap`

(annMap Map)

Source from the content-addressed store, hash-verified

55
56// Check is a boolean test that determines whether this FullTrigger should be triggered against the Annotation map `annMap`
57func (t *FullTrigger) Check(annMap Map) bool {
58 return t.Producer.Annotation.CheckProduce(annMap) &&
59 t.Consumer.Annotation.CheckConsume(annMap)
60}
61
62func (t *FullTrigger) truncatedConsumerPos(pass *analysishelper.EnhancedPass) token.Position {
63 return pass.PosToLocation(t.Consumer.Pos())

Callers 2

checkErrorsFunction · 0.80
TestIsDeeplyArrayFunction · 0.80

Calls 2

CheckProduceMethod · 0.65
CheckConsumeMethod · 0.65

Tested by 1

TestIsDeeplyArrayFunction · 0.64