Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for niceError (0.14 sec)

  1. cmd/signature-v2_test.go

    			// Check if it matches!
    			errCode := doesPresignV2SignatureMatch(req)
    			if errCode != testCase.expected {
    				t.Errorf("(%d) expected to get %s, instead got %s", i, niceError(testCase.expected), niceError(errCode))
    			}
    		} else {
    			err = preSignV2(req, accessKey, secretKey, now.Unix()+60)
    			if err != nil {
    				t.Fatalf("(%d) failed to preSignV2 http request, got %v", i, err)
    			}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Oct 14 10:08:40 UTC 2022
    - 8K bytes
    - Viewed (0)
  2. cmd/signature-v4_test.go

    	for i, testCase := range testCases {
    		_, code := doesPolicySignatureMatch(testCase.form)
    		if code != testCase.expected {
    			t.Errorf("(%d) expected to get %s, instead got %s", i, niceError(testCase.expected), niceError(code))
    		}
    	}
    }
    
    func TestDoesPresignedSignatureMatch(t *testing.T) {
    	ctx, cancel := context.WithCancel(context.Background())
    	defer cancel()
    
    	obj, fsDir, err := prepareFS(ctx)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  3. test/fixedbugs/issue19911.go

    	check("true", fmt.Sprintf("(*ET)(nil) != error(nil): %v", (*ET)(nil) != error(nil)))
    
    	nilET := (*ET)(nil)
    	nilError := error(nil)
    
    	check("false", fmt.Sprintf("nilET == nilError: %v", nilET == nilError))
    	check("true", fmt.Sprintf("nilET != nilError: %v", nilET != nilError))
    }
    
    func check(want, gotfull string) {
    	got := gotfull[strings.Index(gotfull, ": ")+len(": "):]
    	if got != want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 10 20:05:56 UTC 2017
    - 832 bytes
    - Viewed (0)
Back to top