MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / getRuleName

Function getRuleName

pkg/policies/engine/rego/rego.go:355–360  ·  view source on GitHub ↗
(packagePath ast.Ref, rule string)

Source from the content-addressed store, hash-verified

353}
354
355func 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.

Callers 3

VerifyMethod · 0.85
MatchesParametersMethod · 0.85
MatchesEvaluationMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected