Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestObjectIsRemote (0.12 sec)

  1. cmd/bucket-lifecycle_test.go

    	for i, tc := range testCases {
    		if actual := isRestoredObjectOnDisk(tc.meta); actual != tc.ondisk {
    			t.Fatalf("Test %d: expected %v but got %v for %v", i+1, tc.ondisk, actual, tc.meta)
    		}
    	}
    }
    
    func TestObjectIsRemote(t *testing.T) {
    	fi := newFileInfo("object", 8, 8)
    	fi.Erasure.Index = 1
    	if !fi.IsValid() {
    		t.Fatalf("unable to get xl meta")
    	}
    
    	testCases := []struct {
    		meta   map[string]string
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue May 31 09:57:57 UTC 2022
    - 7K bytes
    - Viewed (0)
Back to top