(req *policysession.CheckPolicyRequest)
| 517 | } |
| 518 | |
| 519 | func sourceName(req *policysession.CheckPolicyRequest) string { |
| 520 | name := req.Source.Source.Identifier |
| 521 | if p, _ := platformFromReq(req); p != nil { |
| 522 | name += " (" + platforms.Format(*p) + ")" |
| 523 | } |
| 524 | return name |
| 525 | } |
| 526 | |
| 527 | func (p *Policy) Print(ctx print.Context, msg string) error { |
| 528 | if p.opt.Log != nil { |
no test coverage detected
searching dependent graphs…