v0.1.0 f503a24

export_test.go RawHistoryFolder

1package neferclient
2
3import (
4	"context"
5	"net"
6)
7
8// Test access for the external neferclient_test package, which imports the
9// generated mocks (they import this package, so in-package tests cannot).
10
11const RingSize = ringSize
12
13func ConnectConn(ctx context.Context, sock net.Conn) (*Conn, error) { return connectConn(ctx, sock) }
14
15func SocketPath(name string) (string, error) { return socketPath(name) }
16
17func (c *Conn) QueueLen() int { return c.q.length() }
18
19// MarkPresentable stands in for the configure and feedback rounds, which the
20// allocation test does not drive over the wire.
21func (s *Surface) MarkPresentable(w, h int32) {
22	s.width, s.height = w, h
23	s.configured, s.frameReady, s.fbDone = true, true, true
24}
25
26func (s *Surface) SurfaceObjectID() uint32 { return s.surf.ID() }
27
28// SkipFrameRequests makes Present omit wl_surface.frame.
29func (s *Surface) SkipFrameRequests() { s.req = wireRequests{s: s, skipFrame: true} }
30
31// ResetFrame re-arms Present when frame requests are skipped.
32func (s *Surface) ResetFrame() { s.frameReady = true }
33
34// UseWireRequests restores the full request path.
35func (s *Surface) UseWireRequests() { s.req = wireRequests{s: s} }
36
37// MarkPresented stands in for a committed Present.
38func (s *Surface) MarkPresented() { s.presented = true }
39
40// DropFrameCallback marks the pending frame callback as answered.
41func (s *Surface) PendingFrame() bool { return !s.frameReady }

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 4

↑↓ moveenter openesc close