forked from xyproto/orbiton
-
Notifications
You must be signed in to change notification settings - Fork 1
/
lochist_test.go
36 lines (31 loc) · 753 Bytes
/
lochist_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package main
import (
"fmt"
"os"
"path/filepath"
"testing"
)
func TestVimInfo(t *testing.T) {
LoadVimLocationHistory(expandUser(vimLocationHistoryFilename))
}
func TestEmacsPlaces(t *testing.T) {
LoadEmacsLocationHistory(expandUser(emacsLocationHistoryFilename))
}
func TestNeoVimMsgPack(t *testing.T) {
curdir, err := os.Getwd()
if err != nil {
t.Fail()
}
searchFilename, err := filepath.Abs(filepath.Join(curdir, "main.go"))
if err != nil {
t.Fail()
}
line, err := FindInNvimLocationHistory(expandUser(nvimLocationHistoryFilename), searchFilename)
if err != nil {
// main.go might not be in the neovim location history, this is fine
fmt.Println(err)
}
_ = line
// Enable this for debugging
//fmt.Println("line", line)
}