Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testStorageAPIListDir (0.17 sec)

  1. cmd/storage-rest_test.go

    		expectErr := (err != nil)
    
    		if expectErr != testCase.expectErr {
    			t.Fatalf("case %v: error: expected: %v, got: %v, err: %v", i+1, expectErr, testCase.expectErr, err)
    		}
    	}
    }
    
    func testStorageAPIListDir(t *testing.T, storage StorageAPI) {
    	err := storage.AppendFile(context.Background(), "foo", "path/to/myobject", []byte("foo"))
    	if err != nil {
    		t.Fatalf("unexpected error %v", err)
    	}
    
    	testCases := []struct {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 22 07:04:48 UTC 2024
    - 11.5K bytes
    - Viewed (0)
Back to top