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

Function mustParseBool

functional_tests.go:14893–14899  ·  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

14891
14892// Convert string to bool and always return false if any error
14893func mustParseBool(str string) bool {
14894 b, err := strconv.ParseBool(str)
14895 if err != nil {
14896 return false
14897 }
14898 return b
14899}
14900
14901// wantChecksums is a map of expected checksums for an object.
14902type 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