github.com/MetalBlockchain/metalgo@v1.11.9/vms/platformvm/state/empty_iterator_test.go (about) 1 // Copyright (C) 2019-2024, Ava Labs, Inc. All rights reserved. 2 // See the file LICENSE for licensing terms. 3 4 package state 5 6 import ( 7 "testing" 8 9 "github.com/stretchr/testify/require" 10 ) 11 12 func TestEmptyIterator(t *testing.T) { 13 require := require.New(t) 14 require.False(EmptyIterator.Next()) 15 16 EmptyIterator.Release() 17 18 require.False(EmptyIterator.Next()) 19 require.Nil(EmptyIterator.Value()) 20 }