Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for bad (2.08 sec)

  1. cmd/httprange_test.go

    		}
    		o, l, err := rs.GetOffsetLength(resourceSize)
    		if err != nil {
    			t.Errorf("unexpected err: %v", err)
    		}
    		if o != testCase.expOffset || l != testCase.expLength {
    			t.Errorf("Case %d: got bad offset/length: %d,%d expected: %d,%d",
    				i, o, l, testCase.expOffset, testCase.expLength)
    		}
    	}
    
    	unparsableRangeSpecs := []string{
    		"bytes=-",
    		"bytes==",
    		"bytes==1-10",
    		"bytes=",
    		"bytes=aa",
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  2. internal/arn/arn.go

    		err = errors.New("invalid ARN string format")
    		return
    	}
    
    	if ps[1] != string(arnPartitionMinio) {
    		err = errors.New("invalid ARN - bad partition field")
    		return
    	}
    
    	if ps[2] != string(arnServiceIAM) {
    		err = errors.New("invalid ARN - bad service field")
    		return
    	}
    
    	// ps[3] is region and is not validated here. If the region is invalid,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 08:31:34 GMT 2024
    - 3.5K bytes
    - Viewed (0)
Back to top