func Netmap() *netmap.Netmap {
	nm, err := netmap.NewNetmap(Nodes())
	if err != nil {
		panic(err)
	}
	return nm
}
Netmap returns random netmap.Netmap.
package netmaptest
import (
	"github.com/nspcc-dev/neofs-api-go/pkg/netmap"
)
func filter(withInner bool) *netmap.Filter {
	x := netmap.NewFilter()
	x.SetName("name")
	x.SetKey("key")
	x.SetValue("value")
	x.SetOperation(netmap.OpAND)
	if withInner {
		x.SetInnerFilters(filter(false), filter(false))
	}
	return x
}
func Filter() *netmap.Filter {
	return filter(true)
}
func Replica() *netmap.Replica {
	x := netmap.NewReplica()
	x.SetCount(666)
	x.SetSelector("selector")
	return x
}
func Selector() *netmap.Selector {
	x := netmap.NewSelector()
	x.SetCount(11)
	x.SetName("name")
	x.SetFilter("filter")
	x.SetAttribute("attribute")
	x.SetClause(netmap.ClauseDistinct)
	return x
}
func PlacementPolicy() *netmap.PlacementPolicy {
	x := netmap.NewPlacementPolicy()
	x.SetContainerBackupFactor(9)
	x.SetFilters(Filter(), Filter())
	x.SetReplicas(Replica(), Replica())
	x.SetSelectors(Selector(), Selector())
	return x
}
func NetworkParameter() *netmap.NetworkParameter {
	x := netmap.NewNetworkParameter()
	x.SetKey([]byte("key"))
	x.SetValue([]byte("value"))
	return x
}
func NetworkConfig() *netmap.NetworkConfig {
	x := netmap.NewNetworkConfig()
	x.SetParameters(
		NetworkParameter(),
		NetworkParameter(),
	)
	return x
}
func NetworkInfo() *netmap.NetworkInfo {
	x := netmap.NewNetworkInfo()
	x.SetCurrentEpoch(21)
	x.SetMagicNumber(32)
	x.SetMsPerBlock(43)
	x.SetNetworkConfig(NetworkConfig())
	return x
}
func NodeAttribute() *netmap.NodeAttribute {
	x := netmap.NewNodeAttribute()
	x.SetKey("key")
	x.SetValue("value")
	x.SetParentKeys("parent1", "parent2")
	return x
}
func NodeInfo() *netmap.NodeInfo {
	x := netmap.NewNodeInfo()
	x.SetAddresses("address 1", "address 2")
	x.SetPublicKey([]byte("public key"))
	x.SetState(netmap.NodeStateOnline)
	x.SetAttributes(NodeAttribute(), NodeAttribute())
	return x
}
func Node() *netmap.Node {
	return &netmap.Node{
		ID:       1,
		Index:    2,
		Capacity: 3,
		Price:    4,
		AttrMap: map[string]string{
			"key1": "value1",
			"key2": "value2",
		},
		NodeInfo: NodeInfo(),
	}
}
func Nodes() netmap.Nodes {
	return netmap.Nodes{Node(), Node()}
}