File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -497,6 +497,16 @@ describe('setup-go', () => {
497
497
expect ( annotation . message ) . toBe ( 'undefined: fmt.Printl' ) ;
498
498
} ) ;
499
499
500
+ it ( 'matches on unix path down the tree' , async ( ) => {
501
+ let line = 'foo/main.go:13:2: undefined: fmt.Printl' ;
502
+ let annotation = testMatch ( line ) ;
503
+ expect ( annotation ) . toBeDefined ( ) ;
504
+ expect ( annotation . line ) . toBe ( 13 ) ;
505
+ expect ( annotation . column ) . toBe ( 2 ) ;
506
+ expect ( annotation . file ) . toBe ( 'foo/main.go' ) ;
507
+ expect ( annotation . message ) . toBe ( 'undefined: fmt.Printl' ) ;
508
+ } ) ;
509
+
500
510
it ( 'matches on rooted unix path' , async ( ) => {
501
511
let line = '/assert.go:4:1: missing return at end of function' ;
502
512
let annotation = testMatch ( line ) ;
Original file line number Diff line number Diff line change 4
4
"owner" : " go" ,
5
5
"pattern" : [
6
6
{
7
- "regexp" : " ^\\ s*(\\ .{0,2}[ \\ / \\\\ ] .+\\ .go):(?:(\\ d+):(\\ d+):)? (.*)" ,
7
+ "regexp" : " ^\\ s*(.+\\ .go):(?:(\\ d+):(\\ d+):)? (.*)" ,
8
8
"file" : 1 ,
9
9
"line" : 2 ,
10
10
"column" : 3 ,
13
13
]
14
14
}
15
15
]
16
- }
16
+ }
You can’t perform that action at this time.
0 commit comments