Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for instead (0.17 sec)

  1. cmd/object-api-listobjects_test.go

    			}
    			// Failed as expected, but does it fail for the expected reason.
    			if err != nil && !testCase.shouldPass {
    				if !strings.Contains(err.Error(), testCase.err.Error()) {
    					t.Errorf("Test %d: %s: Expected to fail with error \"%s\", but instead failed with error \"%s\" instead", i+1, instanceType, testCase.err.Error(), err.Error())
    				}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 11:07:40 GMT 2024
    - 73.1K bytes
    - Viewed (0)
  2. cmd/object-api-multipart_test.go

    		}
    		// Failed as expected, but does it fail for the expected reason.
    		if actualErr != nil && !testCase.shouldPass {
    			if testCase.expectedError.Error() != actualErr.Error() {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 77.1K bytes
    - Viewed (0)
  3. cmd/test-utils_test.go

    		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))
    	}
    	ctx := context.Background()
    	if toAPIError(ctx, nil) != noError {
    		t.Errorf("Test expected error code to be ErrNone, failed instead provided %s", toAPIError(ctx, nil).Code)
    	}
    }
    
    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)
  4. cmd/erasure-server-pool.go

    						r, err = disk.ReadFileStream(ctx, volume, si.Name, 0, si.Size)
    						if err != nil {
    							continue
    						}
    					} else {
    						r = io.NopCloser(bytes.NewBuffer([]byte{}))
    					}
    					// Keep disk path instead of ID, to ensure that the downloaded zip file can be
    					// easily automated with `minio server hostname{1...n}/disk{1...m}`.
    					err = fn(r, disk.Hostname(), disk.Endpoint().Path, pathJoin(volume, si.Name), si)
    					r.Close()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 80.5K bytes
    - Viewed (0)
  5. cmd/xl-storage.go

    		renameAll(encodeDirObject(filePath), targetPath2, pathutil.Join(s.drivePath, minioMetaBucket))
    	}
    
    	// ENOSPC is a valid error from rename(); remove instead of rename in that case
    	if errors.Is(err, errDiskFull) || isSysErrNoSpace(err) {
    		if recursive {
    			err = removeAll(filePath)
    		} else {
    			err = Remove(filePath)
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
  6. cmd/erasure-object.go

    						})
    					})
    					// Healing is triggered and we have written
    					// successfully the content to client for
    					// the specific part, we should `nil` this error
    					// and proceed forward, instead of throwing errors.
    					err = nil
    				}
    			}
    			if err != nil {
    				return toObjectErr(err, bucket, object)
    			}
    		}
    		for i, r := range readers {
    			if r == nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 77.2K bytes
    - Viewed (2)
  7. tests/query_test.go

    	}
    
    	if len(users) != 4 {
    		t.Errorf("Four users should be found, instead found %d", len(users))
    	}
    
    	DB.Select("*").Where("name LIKE ?", "subquery%").Where("age >= (?)", DB.
    		Select("AVG(age)").Table("users").Where("name LIKE ?", "subquery%")).Find(&users)
    
    	if len(users) != 2 {
    		t.Errorf("Two users should be found, instead found %d", len(users))
    	}
    }
    
    func TestSubQueryWithRaw(t *testing.T) {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Apr 25 12:22:53 GMT 2024
    - 49.8K bytes
    - Viewed (0)
  8. src/cmd/cgo/gcc.go

    		// laxness of C by making the argument *X instead of T.
    		if ptr, ok := base(dt.Type).(*dwarf.PtrType); ok {
    			// Unless the typedef happens to point to void* since
    			// Go has special rules around using unsafe.Pointer.
    			if _, void := base(ptr.Type).(*dwarf.VoidType); void {
    				break
    			}
    			// ...or the typedef is one in which we expect bad pointers.
    			// It will be a uintptr instead of *X.
    			if c.baseBadPointerTypedef(dt) {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
  9. cmd/xl-storage_test.go

    			continue
    		}
    		if err == nil {
    			if !bytes.Equal(dataRead, []byte("Hello, World")) {
    				t.Errorf("TestXLStorage %d: Expected the data read to be \"%s\", but instead got \"%s\"", i+1, "Hello, World", string(dataRead))
    			}
    		}
    	}
    }
    
    // TestNewXLStorage all the cases handled in xlStorage storage layer initialization.
    func TestNewXLStorage(t *testing.T) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 11 17:45:28 GMT 2024
    - 66.7K bytes
    - Viewed (0)
  10. src/archive/zip/reader_test.go

    	"path/filepath"
    	"reflect"
    	"regexp"
    	"strings"
    	"testing"
    	"testing/fstest"
    	"time"
    )
    
    type ZipTest struct {
    	Name     string
    	Source   func() (r io.ReaderAt, size int64) // if non-nil, used instead of testdata/<Name> file
    	Comment  string
    	File     []ZipTestFile
    	Obscured bool  // needed for Apple notarization (golang.org/issue/34986)
    	Error    error // the error that Opening this file should return
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
Back to top