Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for toObjectErr (0.14 sec)

  1. cmd/test-utils_test.go

    	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 {
    		t.Errorf("Test expected to return nil, failed instead got a non-nil value %s", toStorageErr(nil))
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 17:26:51 GMT 2024
    - 76.2K bytes
    - Viewed (0)
Back to top