- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestGetAndPrevious (0.3 sec)
-
pkg/ledger/ledger_test.go
assert.Equal(t, res, "1") res, err = l.Get(longKey + "2") assert.NoError(t, err) assert.Equal(t, res, "2") res, err = l.Get(longKey) assert.NoError(t, err) assert.Equal(t, res, "") } 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")
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jul 12 16:12:59 UTC 2023 - 4K bytes - Viewed (0)