github.com/koko1123/flow-go-1@v0.29.6/network/topology/empty_test.go (about) 1 package topology_test 2 3 import ( 4 "testing" 5 6 "github.com/stretchr/testify/require" 7 8 "github.com/koko1123/flow-go-1/network/topology" 9 "github.com/koko1123/flow-go-1/utils/unittest" 10 ) 11 12 // TestEmptyTopology checks that EmptyTopology always creates an empty list of fanout. 13 func TestEmptyTopology(t *testing.T) { 14 ids := unittest.IdentityListFixture(10) 15 top := topology.NewEmptyTopology() 16 require.Empty(t, top.Fanout(ids)) 17 }