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

Function mustParseBool

test-utils_test.go:69–75  ·  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

67
68// Convert string to bool and always return false if any error
69func mustParseBool(str string) bool {
70 b, err := strconv.ParseBool(str)
71 if err != nil {
72 return false
73 }
74 return b
75}

Callers 8

TestGetObjectCoreFunction · 0.70
TestGetBucketPolicyFunction · 0.70
TestCoreCopyObjectFunction · 0.70
TestCoreCopyObjectPartFunction · 0.70
TestCorePutObjectFunction · 0.70
TestCoreMultipartUploadFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected