Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ReadAll (0.07 sec)

  1. cmd/server_test.go

    		c.Fatalf("Test %s expected %v, got %v", c.testType, expectedValue, gotValue)
    	}
    }
    
    func verifyError(c *check, response *http.Response, code, description string, statusCode int) {
    	c.Helper()
    	data, err := io.ReadAll(response.Body)
    	c.Assert(err, nil)
    	errorResponse := APIErrorResponse{}
    	err = xml.Unmarshal(data, &errorResponse)
    	c.Assert(err, nil)
    	c.Assert(errorResponse.Code, code)
    	c.Assert(errorResponse.Message, description)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 15 16:28:02 UTC 2024
    - 116.3K bytes
    - Viewed (0)
  2. cmd/object-handlers_test.go

    		if rec.Code != testCase.expectedRespStatus {
    			b, _ := io.ReadAll(rec.Body)
    			t.Fatalf("Test %d: Expected the response status to be `%d`, but instead found `%d`: %s", i, testCase.expectedRespStatus, rec.Code, string(b))
    		}
    		if testCase.expectedRespStatus != http.StatusOK {
    			b, err := io.ReadAll(rec.Body)
    			if err != nil {
    				t.Fatal(err)
    			}
    			var apiErr APIErrorResponse
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 20:10:44 UTC 2024
    - 163.2K bytes
    - Viewed (0)
Back to top