another test case
This commit is contained in:
		
							parent
							
								
									5156bc5dd3
								
							
						
					
					
						commit
						0a62a734da
					
				| @ -409,6 +409,16 @@ describe('setup-go', () => { | |||||||
|     expect(annotation.message).toBe('undefined: fmt.Printl'); |     expect(annotation.message).toBe('undefined: fmt.Printl'); | ||||||
|   }); |   }); | ||||||
| 
 | 
 | ||||||
|  |   it('only matches leading dots on unix path', async () => { | ||||||
|  |     let line = 'x./assert.go:5:2: missing return at end of function'; | ||||||
|  |     let annotation = testMatch(line); | ||||||
|  |     expect(annotation).toBeDefined(); | ||||||
|  |     expect(annotation.line).toBe(5); | ||||||
|  |     expect(annotation.column).toBe(2); | ||||||
|  |     expect(annotation.file).toBe('./assert.go'); | ||||||
|  |     expect(annotation.message).toBe('missing return at end of function'); | ||||||
|  |   }); | ||||||
|  | 
 | ||||||
|   // 1.13.1 => 1.13.1
 |   // 1.13.1 => 1.13.1
 | ||||||
|   // 1.13 => 1.13.0
 |   // 1.13 => 1.13.0
 | ||||||
|   // 1.10beta1 => 1.10.0-beta1, 1.10rc1 => 1.10.0-rc1
 |   // 1.10beta1 => 1.10.0-beta1, 1.10rc1 => 1.10.0-rc1
 | ||||||
|  | |||||||
| @ -4,7 +4,7 @@ | |||||||
|             "owner": "go", |             "owner": "go", | ||||||
|             "pattern": [ |             "pattern": [ | ||||||
|                 { |                 { | ||||||
|                     "regexp": "((?:.{0,2}\\/|.{0,2}\\\\)(?:.+\\.go)):(?:(\\d+):(\\d+):)? (.*)", |                     "regexp": "((?:\\.{0,2}\\/|\\.{0,2}\\\\)(?:.+\\.go)):(?:(\\d+):(\\d+):)? (.*)", | ||||||
|                     "file": 1, |                     "file": 1, | ||||||
|                     "line": 2, |                     "line": 2, | ||||||
|                     "column": 3, |                     "column": 3, | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user