mirror of
https://github.com/actions/setup-go
synced 2024-12-22 06:12:42 +00:00
lint
This commit is contained in:
parent
34223181a5
commit
74c8095946
1 changed files with 8 additions and 10 deletions
|
@ -326,10 +326,10 @@ describe('setup-go', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
interface Annotation {
|
interface Annotation {
|
||||||
file: string,
|
file: string;
|
||||||
line: number,
|
line: number;
|
||||||
column: number,
|
column: number;
|
||||||
message: string
|
message: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -347,7 +347,7 @@ describe('setup-go', () => {
|
||||||
}
|
}
|
||||||
|
|
||||||
return annotation;
|
return annotation;
|
||||||
}
|
}
|
||||||
|
|
||||||
it('matches on rooted unix path', async () => {
|
it('matches on rooted unix path', async () => {
|
||||||
let line = '/assert.go:4:1: missing return at end of function';
|
let line = '/assert.go:4:1: missing return at end of function';
|
||||||
|
@ -367,7 +367,7 @@ describe('setup-go', () => {
|
||||||
expect(annotation.column).toBe(1);
|
expect(annotation.column).toBe(1);
|
||||||
expect(annotation.file).toBe('./a/path/assert.go');
|
expect(annotation.file).toBe('./a/path/assert.go');
|
||||||
expect(annotation.message).toBe('missing return at end of function');
|
expect(annotation.message).toBe('missing return at end of function');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('matches on rooted unix path', async () => {
|
it('matches on rooted unix path', async () => {
|
||||||
let line = '/assert.go:4:1: missing return at end of function';
|
let line = '/assert.go:4:1: missing return at end of function';
|
||||||
|
@ -377,7 +377,7 @@ describe('setup-go', () => {
|
||||||
expect(annotation.column).toBe(1);
|
expect(annotation.column).toBe(1);
|
||||||
expect(annotation.file).toBe('/assert.go');
|
expect(annotation.file).toBe('/assert.go');
|
||||||
expect(annotation.message).toBe('missing return at end of function');
|
expect(annotation.message).toBe('missing return at end of function');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('matches on rooted unix path with whitespace', async () => {
|
it('matches on rooted unix path with whitespace', async () => {
|
||||||
let line = ' /assert.go:5:2: missing return at end of function ';
|
let line = ' /assert.go:5:2: missing return at end of function ';
|
||||||
|
@ -387,9 +387,7 @@ describe('setup-go', () => {
|
||||||
expect(annotation.column).toBe(2);
|
expect(annotation.column).toBe(2);
|
||||||
expect(annotation.file).toBe('/assert.go');
|
expect(annotation.file).toBe('/assert.go');
|
||||||
expect(annotation.message).toBe('missing return at end of function');
|
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
|
||||||
|
|
Loading…
Reference in a new issue