MCPcopy Index your code
hub / github.com/crowdsecurity/crowdsec / Escape

Function Escape

pkg/hubtest/parser_assert.go:227–232  ·  view source on GitHub ↗
(val string)

Source from the content-addressed store, hash-verified

225}
226
227func Escape(val string) string {
228 val = strings.ReplaceAll(val, `\`, `\\`)
229 val = strings.ReplaceAll(val, `"`, `\"`)
230
231 return val
232}
233
234func (p *ParserAssert) AutoGenParserAssert() string {
235 // attempt to autogen parser asserts

Callers 3

AutoGenParserAssertMethod · 0.85
AutoGenScenarioAssertMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…