Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestToErrIsNil (0.11 sec)

  1. cmd/test-utils_test.go

    	if seed != -1 {
    		rand.Seed(seed)
    	}
    	n := len(s)
    	var j int
    	for i := 0; i < n-1; i++ {
    		j = i + rand.Intn(n-i)
    		s[i], s[j] = s[j], s[i]
    	}
    	return s
    }
    
    func TestToErrIsNil(t *testing.T) {
    	if toObjectErr(nil) != nil {
    		t.Errorf("Test expected to return nil, failed instead got a non-nil value %s", toObjectErr(nil))
    	}
    	if toStorageErr(nil) != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 22:13:18 UTC 2024
    - 77K bytes
    - Viewed (0)
Back to top