MCPcopy Index your code
hub / github.com/keploy/keploy / looksBinary

Function looksBinary

pkg/util.go:1988–1998  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

1986}
1987
1988func looksBinary(s string) bool {
1989 if !utf8.ValidString(s) {
1990 return true
1991 }
1992 for i := 0; i < len(s); i++ {
1993 if s[i] == 0 {
1994 return true
1995 }
1996 }
1997 return false
1998}
1999
2000// updateTemplateValuesFromHTTPResp checks the HTTP response body and the previous
2001// templatized response body and updates the template values that are currently held

Callers 1

prepareHTTPRequestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected