Documentation ¶
Index ¶
- func CompareHeaders(h1 http.Header, h2 http.Header, res *[]run.HeaderResult, ...) bool
- func Contains(elems []string, v string) bool
- func IsValidPath(s string) bool
- func Match(exp, act string, noise []string, log *zap.Logger) (bool, error)
- func RemoveNoise(exp, act string, noise []string, log *zap.Logger) (interface{}, interface{})
- func SanitiseInput(s string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareHeaders ¶
func IsValidPath ¶ added in v0.5.6
func RemoveNoise ¶ added in v0.5.6
RemoveNoise return the expected and actual body in JSON
func SanitiseInput ¶ added in v0.5.6
sanitiseInput sanitises user input strings before logging them for safety, removing newlines and escaping HTML tags. This is to prevent log injection, including forgery of log records. Reference: https://www.owasp.org/index.php/Log_Injection
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.