MCPcopy Create free account
hub / github.com/cel-expr/cel-go / normalize

Function normalize

policy/compiler_test.go:536–541  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

534}
535
536func normalize(s string) string {
537 return strings.ReplaceAll(
538 strings.ReplaceAll(
539 strings.ReplaceAll(s, " ", ""), "\n", ""),
540 "\t", "")
541}
542
543func verifySourceInfoCoverage(t testing.TB, policy *Policy, ast *cel.Ast) {
544 t.Helper()

Callers 2

TestRuleComposerUnnestFunction · 0.85
setupMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected