mirror of
https://github.com/luxfi/proto.git
synced 2026-10-30 15:21:09 +00:00
21 lines
399 B
Go
21 lines
399 B
Go
// Copyright (C) 2019-2025, Lux Industries, Inc. All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
|
|
package state
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestEmptyIterator(t *testing.T) {
|
|
require := require.New(t)
|
|
require.False(EmptyIterator.Next())
|
|
|
|
EmptyIterator.Release()
|
|
|
|
require.False(EmptyIterator.Next())
|
|
require.Nil(EmptyIterator.Value())
|
|
}
|