Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for resultHashes (0.29 sec)

  1. pkg/ledger/ledger_test.go

    }
    
    func TestGetAndPrevious(t *testing.T) {
    	l := smtLedger{tree: newSMT(hasher, nil, time.Minute)}
    	resultHashes := map[string]bool{}
    	l.Put("foo", "bar")
    	firstHash := l.RootHash()
    
    	resultHashes[l.RootHash()] = true
    	l.Put("foo", "baz")
    	resultHashes[l.RootHash()] = true
    	l.Put("second", "value")
    	resultHashes[l.RootHash()] = true
    	getResult, err := l.Get("foo")
    	assert.NoError(t, err)
    	assert.Equal(t, getResult, "baz")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jul 12 16:12:59 UTC 2023
    - 4K bytes
    - Viewed (0)
  2. cmd/object-api-listobjects_test.go

    		{"test-bucket-list-object", "", "", "", 4, resultCases[2], nil, true},
    		{"test-bucket-list-object", "", "", "", 3, resultCases[3], nil, true},
    		{"test-bucket-list-object", "", "", "", 1, resultCases[4], nil, true},
    		// Testing with prefix (25-28).
    		{"test-bucket-list-object", "new", "", "", 3, resultCases[5], nil, true},
    		{"test-bucket-list-object", "new", "", "", 4, resultCases[5], nil, true},
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 01 11:07:40 UTC 2024
    - 73.1K bytes
    - Viewed (0)
  3. cmd/object-api-getobjectinfo_test.go

    		// Valid case with existing object (Test number 12).
    		{"test-getobjectinfo", "Asia/asiapics.jpg", resultCases[0], nil, true},
    		{"test-getobjectinfo", "Asia/empty-dir/", resultCases[1], nil, true},
    	}
    	for i, testCase := range testCases {
    		result, err := obj.GetObjectInfo(context.Background(), testCase.bucketName, testCase.objectName, opts)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Dec 23 15:46:00 UTC 2022
    - 5.6K bytes
    - Viewed (0)
Back to top