mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-19 19:30:44 +00:00
rlp: remove it.Count in tests
This commit is contained in:
parent
934538de8c
commit
ab057a97d6
1 changed files with 0 additions and 3 deletions
|
|
@ -68,9 +68,6 @@ func (test rawListTest[T]) run(t *testing.T) {
|
||||||
// check iterator
|
// check iterator
|
||||||
it := rl.ContentIterator()
|
it := rl.ContentIterator()
|
||||||
i := 0
|
i := 0
|
||||||
if count := it.Count(); count != test.length {
|
|
||||||
t.Fatalf("iterator has wrong Count %d, want %d", count, test.length)
|
|
||||||
}
|
|
||||||
for it.Next() {
|
for it.Next() {
|
||||||
var item T
|
var item T
|
||||||
if err := DecodeBytes(it.Value(), &item); err != nil {
|
if err := DecodeBytes(it.Value(), &item); err != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue