29 tests generated from live 26.2 clientbound capture via tcpflow. 6076 packets captured, 35 decode failures (0.58%), 0 serverbound failures.
19 lines
413 B
Go
19 lines
413 B
Go
package failed_packets_test
|
|
|
|
import (
|
|
"bytes"
|
|
"testing"
|
|
|
|
generated "github.com/admin-else/strom/mc/proto_generated/v26_2"
|
|
)
|
|
|
|
// Error: to do
|
|
func TestFailedPacket62AB3B7CA4199CC4(t *testing.T) {
|
|
p := &generated.PlayToClientPacketEntityEquipment{}
|
|
b := bytes.NewReader([]byte{0xf2, 0x1, 0x0, 0x1, 0x9a, 0x7, 0x0, 0x0})
|
|
err := p.Decode(b)
|
|
if err == nil {
|
|
t.Fatalf("expected decode error but got nil")
|
|
}
|
|
}
|