code: func NewPeer(id enode.ID, name string, caps []Cap) *Peer {
  	pipe, _ := net.Pipe()
  	node := enode.SignNull(new(enr.Record), id)
  	conn := &conn{fd: pipe, transport: nil, node: node, caps: caps, name: name}
  	peer := newPeer(conn, nil)
  	close(peer.closed) // ensures Disconnect doesn't block
  	return peer
  }
docs: // NewPeer returns a peer for testing purposes.