MCPcopy Create free account
hub / github.com/AbelChe/evil_minio / makeTestTargetURL

Function makeTestTargetURL

cmd/test-utils_test.go:1232–1244  ·  view source on GitHub ↗

construct URL for http requests for bucket operations.

(endPoint, bucketName, objectName string, queryValues url.Values)

Source from the content-addressed store, hash-verified

1230
1231// construct URL for http requests for bucket operations.
1232func makeTestTargetURL(endPoint, bucketName, objectName string, queryValues url.Values) string {
1233 urlStr := endPoint + SlashSeparator
1234 if bucketName != "" {
1235 urlStr = urlStr + bucketName + SlashSeparator
1236 }
1237 if objectName != "" {
1238 urlStr += s3utils.EncodePath(objectName)
1239 }
1240 if len(queryValues) > 0 {
1241 urlStr = urlStr + "?" + queryValues.Encode()
1242 }
1243 return urlStr
1244}
1245
1246// return URL for uploading object into the bucket.
1247func getPutObjectURL(endPoint, bucketName, objectName string) string {

Callers 15

getPutObjectURLFunction · 0.85
getPutObjectPartURLFunction · 0.85
getCopyObjectPartURLFunction · 0.85
getGetObjectURLFunction · 0.85
getDeleteObjectURLFunction · 0.85
getMultiDeleteObjectURLFunction · 0.85
getHeadObjectURLFunction · 0.85
getCopyObjectURLFunction · 0.85
getPutNotificationURLFunction · 0.85
getPutPolicyURLFunction · 0.85
getGetPolicyURLFunction · 0.85

Calls 1

EncodeMethod · 0.80

Tested by

no test coverage detected