Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for getObjectLocation (0.33 sec)

  1. cmd/api-response_test.go

    			object:           "test/1.txt",
    			expectedLocation: "https://mybucket.mys3.bucket.org/test/1.txt",
    		},
    	}
    	for _, testCase := range testCases {
    		t.Run("", func(t *testing.T) {
    			gotLocation := getObjectLocation(testCase.request, testCase.domains, testCase.bucket, testCase.object)
    			if testCase.expectedLocation != gotLocation {
    				t.Errorf("expected %s, got %s", testCase.expectedLocation, gotLocation)
    			}
    		})
    	}
    }
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 3.5K bytes
    - Viewed (0)
Back to top