Files
strom/cmd/strom/print_replay/testdata/33_3dc1ae8d81845d61_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
566 B
Go

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