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
This commit is contained in:
OpenCode
2026-08-05 17:43:26 +02:00
parent 7c978e1a7e
commit fa70ea36c6
211 changed files with 3769 additions and 11 deletions
@@ -0,0 +1,18 @@
package failed_packets_test
import (
"bytes"
"testing"
generated "github.com/admin-else/strom/mc/proto_generated/v1_8"
)
// Error: to do
func TestFailedPacketF3FD39B377B10DA9(t *testing.T) {
p := &generated.PlayToClientPacketEntityMetadata{}
b := bytes.NewBuffer([]byte{0x62, 0x0, 0x0, 0x21, 0x1, 0x2c, 0x82, 0x0, 0x3, 0x0, 0x4, 0x0, 0x66, 0x40, 0x80, 0x0, 0x0, 0x47, 0x0, 0x0, 0x0, 0x0, 0x8, 0x0, 0x9, 0x0, 0xc, 0x0, 0xf, 0x0, 0x7f})
err := p.Decode(b)
if err == nil {
t.Fatal("expected decode error %!q(MISSING) but got nil", "to do")
}
}