MCPcopy
hub / github.com/minio/minio-go / mustParseBool

Function mustParseBool

functional_tests.go:14997–15003  ·  view source on GitHub ↗

Convert string to bool and always return false if any error

(str string)

Source from the content-addressed store, hash-verified

14995
14996// Convert string to bool and always return false if any error
14997func mustParseBool(str string) bool {
14998 b, err := strconv.ParseBool(str)
14999 if err != nil {
15000 return false
15001 }
15002 return b
15003}
15004
15005// wantChecksums is a map of expected checksums for an object.
15006type wantChecksums map[minio.ChecksumType]string

Callers 5

createHTTPTransportFunction · 0.70
NewClientFunction · 0.70
testPresignedPostPolicyFunction · 0.70
mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected