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

Function normalize

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

Source from the content-addressed store, hash-verified

526}
527
528func normalize(s string) string {
529 return strings.ReplaceAll(
530 strings.ReplaceAll(
531 strings.ReplaceAll(s, " ", ""), "\n", ""),
532 "\t", "")
533}
534
535func verifySourceInfoCoverage(t testing.TB, policy *Policy, ast *cel.Ast) {
536 t.Helper()

Callers 4

TestComposeFunction · 0.85
TestRuleComposerUnnestFunction · 0.85
setupMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected