7 "github.com/stretchr/testify/require"
10func TestDir(t *testing.T) {
11 require.NotEmpty(t, Dir())
14func TestShort(t *testing.T) {
15 d := filepath.Join(Dir(), "documents", "file.txt")
16 require.Equal(t, filepath.FromSlash("~/documents/file.txt"), Short(d))
17 ad := filepath.FromSlash("/absolute/path/file.txt")
18 require.Equal(t, ad, Short(ad))
21func TestLong(t *testing.T) {
22 d := filepath.FromSlash("~/documents/file.txt")
23 require.Equal(t, filepath.Join(Dir(), "documents", "file.txt"), Long(d))
24 ad := filepath.FromSlash("/absolute/path/file.txt")
25 require.Equal(t, ad, Long(ad))
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list