mirror of
https://github.com/libp2p/go-libp2p-core.git
synced 2025-03-15 11:10:08 +08:00
19 lines
422 B
Go
19 lines
422 B
Go
package test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/libp2p/go-libp2p/core/peer"
|
|
"github.com/libp2p/go-libp2p/core/test"
|
|
)
|
|
|
|
// Deprecated: use github.com/libp2p/go-libp2p/core/test.RandPeerID instead
|
|
func RandPeerID() (peer.ID, error) {
|
|
return test.RandPeerID()
|
|
}
|
|
|
|
// Deprecated: use github.com/libp2p/go-libp2p/core/test.RandPeerIDFatal instead
|
|
func RandPeerIDFatal(t testing.TB) peer.ID {
|
|
return test.RandPeerIDFatal(t)
|
|
}
|