Files
strom/cmd/strom/print_replay/testdata/32_a91abb2711262ff2_test.go
T
OpenCode fa70ea36c6 fix: print_replay test generation & raw_to_tmcpr config state
- Fix SaveUnCodeAbleAsTest using wrong package name (1.8.9 vs v1_8)
- Fix test template using bytes.Buffer instead of bytes.NewReader
- Tests now fail when decode SUCCEEDS (bug is fixed)
- Add config state support to raw_to_tmcpr with -config flag
- Fix mca_to_tmcpr -world flag being ignored
2026-08-05 17:43:26 +02:00

19 lines
560 B
Go

package failed_packets_test
import (
"bytes"
"testing"
generated "github.com/admin-else/strom/mc/proto_generated/v1_8"
)
// Error: to do
func TestFailedPacketA91ABB2711262FF2(t *testing.T) {
p := &generated.PlayToClientPacketEntityMetadata{}
b := bytes.NewBuffer([]byte{0xdb, 0x21, 0x0, 0x0, 0x21, 0x1, 0x2c, 0x82, 0x0, 0x3, 0x0, 0x4, 0x0, 0x66, 0x41, 0xa0, 0x0, 0x0, 0x47, 0x0, 0x0, 0x0, 0x0, 0x8, 0x0, 0x9, 0x0, 0xd, 0x0, 0xf, 0x0, 0x7f})
err := p.Decode(b)
if err == nil {
t.Fatal("expected decode error %!q(MISSING) but got nil", "to do")
}
}