mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-26 21:27:19 +00:00
b55ddb5a34
* Use go:build lines and remove obsolete +build lines * Run gazelle * Update crypto/bls/blst/stub.go * Update crypto/bls/blst/stub.go Co-authored-by: Raul Jordan <raul@prysmaticlabs.com> Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com> Co-authored-by: Nishant Das <nishdas93@gmail.com>
24 lines
480 B
Go
24 lines
480 B
Go
//go:build go1.18
|
|
|
|
package p2p_test
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
|
|
"github.com/prysmaticlabs/prysm/beacon-chain/p2p"
|
|
"github.com/prysmaticlabs/prysm/beacon-chain/p2p/encoder"
|
|
)
|
|
|
|
func FuzzMsgID(f *testing.F) {
|
|
validTopic := fmt.Sprintf(p2p.BlockSubnetTopicFormat, []byte{0xb5, 0x30, 0x3f, 0x2a}) + "/" + encoder.ProtocolSuffixSSZSnappy
|
|
f.Add(validTopic)
|
|
|
|
f.Fuzz(func(t *testing.T, topic string) {
|
|
_, err := p2p.ExtractGossipDigest(topic)
|
|
if err != nil {
|
|
return
|
|
}
|
|
})
|
|
}
|