github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/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/onflow/flow-go/network/topology" 9 "github.com/onflow/flow-go/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 }