main 602baa7

replies_fuzz_test.go RawHistoryFolder

1// Code generated by xtgen; DO NOT EDIT.
2package xfixes
3
4import "testing"
5import "bnema.dev/xturbo/internal/xtest"
6
7func FuzzParseQueryVersionReply(f *testing.F) {
8	f.Add(make([]byte, 32))
9	if raw, err := xtest.LoadHex("../testdata/golden/xfixes/QueryVersion.reply.hex"); err != nil {
10		f.Fatal(err)
11	} else {
12		f.Add(raw)
13	}
14	f.Fuzz(func(t *testing.T, raw []byte) {
15		r, ok := ParseQueryVersionReply(raw)
16		if !ok {
17			if len(raw) >= 32 {
18				t.Fatal("rejected a complete fixed-size reply")
19			}
20			return
21		}
22		if len(r.Raw()) != len(raw) {
23			t.Fatal("Raw must return the parsed bytes")
24		}
25		_ = r.MajorVersion()
26		_ = r.MinorVersion()
27	})
28}
29
30func FuzzParseGetCursorImageReply(f *testing.F) {
31	f.Add(make([]byte, 32))
32	f.Fuzz(func(t *testing.T, raw []byte) {
33		r, ok := ParseGetCursorImageReply(raw)
34		if !ok {
35			return
36		}
37		if len(r.Raw()) != len(raw) {
38			t.Fatal("Raw must return the parsed bytes")
39		}
40		_ = r.X()
41		_ = r.Y()
42		_ = r.Width()
43		_ = r.Height()
44		_ = r.Xhot()
45		_ = r.Yhot()
46		_ = r.CursorSerial()
47		{
48			l0 := r.CursorImage()
49			for i := 0; i < l0.Len(); i++ {
50				_ = l0.At(i)
51			}
52		}
53	})
54}
55
56func FuzzParseFetchRegionReply(f *testing.F) {
57	f.Add(make([]byte, 32))
58	f.Fuzz(func(t *testing.T, raw []byte) {
59		r, ok := ParseFetchRegionReply(raw)
60		if !ok {
61			return
62		}
63		if len(r.Raw()) != len(raw) {
64			t.Fatal("Raw must return the parsed bytes")
65		}
66		_ = r.Extents()
67		{
68			l0 := r.Rectangles()
69			for i := 0; i < l0.Len(); i++ {
70				_ = l0.At(i)
71			}
72		}
73	})
74}
75
76func FuzzParseGetCursorNameReply(f *testing.F) {
77	f.Add(make([]byte, 32))
78	f.Fuzz(func(t *testing.T, raw []byte) {
79		r, ok := ParseGetCursorNameReply(raw)
80		if !ok {
81			return
82		}
83		if len(r.Raw()) != len(raw) {
84			t.Fatal("Raw must return the parsed bytes")
85		}
86		_ = r.Atom()
87		_ = r.Nbytes()
88		_ = len(r.Name())
89	})
90}
91
92func FuzzParseGetCursorImageAndNameReply(f *testing.F) {
93	f.Add(make([]byte, 32))
94	f.Fuzz(func(t *testing.T, raw []byte) {
95		r, ok := ParseGetCursorImageAndNameReply(raw)
96		if !ok {
97			return
98		}
99		if len(r.Raw()) != len(raw) {
100			t.Fatal("Raw must return the parsed bytes")
101		}
102		_ = r.X()
103		_ = r.Y()
104		_ = r.Width()
105		_ = r.Height()
106		_ = r.Xhot()
107		_ = r.Yhot()
108		_ = r.CursorSerial()
109		_ = r.CursorAtom()
110		_ = r.Nbytes()
111		{
112			l0 := r.CursorImage()
113			for i := 0; i < l0.Len(); i++ {
114				_ = l0.At(i)
115			}
116		}
117		_ = len(r.Name())
118	})
119}
120
121func FuzzParseGetClientDisconnectModeReply(f *testing.F) {
122	f.Add(make([]byte, 32))
123	f.Fuzz(func(t *testing.T, raw []byte) {
124		r, ok := ParseGetClientDisconnectModeReply(raw)
125		if !ok {
126			if len(raw) >= 32 {
127				t.Fatal("rejected a complete fixed-size reply")
128			}
129			return
130		}
131		if len(r.Raw()) != len(raw) {
132			t.Fatal("Raw must return the parsed bytes")
133		}
134		_ = r.DisconnectMode()
135	})
136}

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 1

Tags 1

↑↓ moveenter openesc close