test_go_generic_handler.vader
1 Execute(The golang handler should return the correct filenames): 2 AssertEqual 3 \ [ 4 \ { 5 \ 'lnum': 27, 6 \ 'col': 0, 7 \ 'text': 'some error', 8 \ 'type': 'E', 9 \ 'filename': ale#path#Simplify(expand('%:p:h') . '/test.go'), 10 \ }, 11 \ { 12 \ 'lnum': 27, 13 \ 'col': 5, 14 \ 'text': 'some error with a column', 15 \ 'type': 'E', 16 \ 'filename': ale#path#Simplify(expand('%:p:h') . '/other.go'), 17 \ }, 18 \ { 19 \ 'lnum': 18, 20 \ 'col': 0, 21 \ 'text': 'random error', 22 \ 'type': 'E', 23 \ 'filename': ale#path#Simplify(expand('%:p:h') . '/go1.14.go'), 24 \ }, 25 \ { 26 \ 'lnum': 36, 27 \ 'col': 2, 28 \ 'text': 'another random error', 29 \ 'type': 'E', 30 \ 'filename': ale#path#Simplify(expand('%:p:h') . '/anothergo1.14.go'), 31 \ }, 32 \ ], 33 \ ale#handlers#go#Handler(bufnr(''), [ 34 \ 'test.go:27: some error', 35 \ 'other.go:27:5: some error with a column', 36 \ 'vet: go1.14.go:18:0: random error', 37 \ 'vet: anothergo1.14.go:36:2: another random error', 38 \ ])