Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for resultHashes (0.13 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)
Back to top