// Code generated by xtgen; DO NOT EDIT. package xfixes import "testing" import "bnema.dev/xturbo/internal/xtest" func FuzzParseQueryVersionReply(f *testing.F) { f.Add(make([]byte, 32)) if raw, err := xtest.LoadHex("../testdata/golden/xfixes/QueryVersion.reply.hex"); err != nil { f.Fatal(err) } else { f.Add(raw) } f.Fuzz(func(t *testing.T, raw []byte) { r, ok := ParseQueryVersionReply(raw) if !ok { if len(raw) >= 32 { t.Fatal("rejected a complete fixed-size reply") } return } if len(r.Raw()) != len(raw) { t.Fatal("Raw must return the parsed bytes") } _ = r.MajorVersion() _ = r.MinorVersion() }) } func FuzzParseGetCursorImageReply(f *testing.F) { f.Add(make([]byte, 32)) f.Fuzz(func(t *testing.T, raw []byte) { r, ok := ParseGetCursorImageReply(raw) if !ok { return } if len(r.Raw()) != len(raw) { t.Fatal("Raw must return the parsed bytes") } _ = r.X() _ = r.Y() _ = r.Width() _ = r.Height() _ = r.Xhot() _ = r.Yhot() _ = r.CursorSerial() { l0 := r.CursorImage() for i := 0; i < l0.Len(); i++ { _ = l0.At(i) } } }) } func FuzzParseFetchRegionReply(f *testing.F) { f.Add(make([]byte, 32)) f.Fuzz(func(t *testing.T, raw []byte) { r, ok := ParseFetchRegionReply(raw) if !ok { return } if len(r.Raw()) != len(raw) { t.Fatal("Raw must return the parsed bytes") } _ = r.Extents() { l0 := r.Rectangles() for i := 0; i < l0.Len(); i++ { _ = l0.At(i) } } }) } func FuzzParseGetCursorNameReply(f *testing.F) { f.Add(make([]byte, 32)) f.Fuzz(func(t *testing.T, raw []byte) { r, ok := ParseGetCursorNameReply(raw) if !ok { return } if len(r.Raw()) != len(raw) { t.Fatal("Raw must return the parsed bytes") } _ = r.Atom() _ = r.Nbytes() _ = len(r.Name()) }) } func FuzzParseGetCursorImageAndNameReply(f *testing.F) { f.Add(make([]byte, 32)) f.Fuzz(func(t *testing.T, raw []byte) { r, ok := ParseGetCursorImageAndNameReply(raw) if !ok { return } if len(r.Raw()) != len(raw) { t.Fatal("Raw must return the parsed bytes") } _ = r.X() _ = r.Y() _ = r.Width() _ = r.Height() _ = r.Xhot() _ = r.Yhot() _ = r.CursorSerial() _ = r.CursorAtom() _ = r.Nbytes() { l0 := r.CursorImage() for i := 0; i < l0.Len(); i++ { _ = l0.At(i) } } _ = len(r.Name()) }) } func FuzzParseGetClientDisconnectModeReply(f *testing.F) { f.Add(make([]byte, 32)) f.Fuzz(func(t *testing.T, raw []byte) { r, ok := ParseGetClientDisconnectModeReply(raw) if !ok { if len(raw) >= 32 { t.Fatal("rejected a complete fixed-size reply") } return } if len(r.Raw()) != len(raw) { t.Fatal("Raw must return the parsed bytes") } _ = r.DisconnectMode() }) }