(packagePath ast.Ref, rule string)
| 353 | } |
| 354 | |
| 355 | func getRuleName(packagePath ast.Ref, rule string) string { |
| 356 | if rule == "" { |
| 357 | return fmt.Sprintf("%s\n", packagePath) |
| 358 | } |
| 359 | return fmt.Sprintf("%v.%s\n", packagePath, rule) |
| 360 | } |
| 361 | |
| 362 | // MatchesParameters evaluates the matches_parameters rule in a rego policy. |
| 363 | // The function creates an input object with policy parameters and expected parameters. |
no outgoing calls
no test coverage detected