@@ -20,7 +20,7 @@ func TestSarifToAnnotationConverter(t *testing.T) {
20
20
sarif.ResultLocation {Filepath : "test/file" , StartLine : & five }},
21
21
}
22
22
// accuracy of annotation creation tested elsewhere
23
- annotationWithStartLine , _ := github .CreateAnnotation ("test/file" , five , five , "error" , "fail-1-2-3" , "this is a failure" , "raw failure text" )
23
+ annotationWithStartLine , _ := github .CreateAnnotation ("test/file" , five , five , "error" , "fail-1-2-3" , "this is a failure" )
24
24
25
25
sarifWithStartAndEndLine := sarif.Result {
26
26
Message : "this is a failure" ,
@@ -31,7 +31,7 @@ func TestSarifToAnnotationConverter(t *testing.T) {
31
31
sarif.ResultLocation {Filepath : "test/file" , StartLine : & five , EndLine : & ten }},
32
32
}
33
33
// accuracy of annotation creation tested elsewhere
34
- annotationWithStartAndEndLine , _ := github .CreateAnnotation ("test/file" , five , ten , "error" , "fail-1-2-3" , "this is a failure" , "raw failure text" )
34
+ annotationWithStartAndEndLine , _ := github .CreateAnnotation ("test/file" , five , ten , "error" , "fail-1-2-3" , "this is a failure" )
35
35
36
36
tests := []struct {
37
37
name string
@@ -100,8 +100,8 @@ func TestSarifsToAnnotationsConverter(t *testing.T) {
100
100
sarif.ResultLocation {Filepath : "test/file" , StartLine : & five }},
101
101
}
102
102
// accuracy of annotation creation tested elsewhere
103
- annotationOriginal , _ := github .CreateAnnotation ("test/file" , five , five , "error" , "fail-1-2-3" , "this is a failure" , "raw failure text" )
104
- annotationOriginalReportedTwice , _ := github .CreateAnnotation ("test/file" , five , five , "error" , "fail-1-2-3 (reported 2 times)" , "this is a failure" , "raw failure text" )
103
+ annotationOriginal , _ := github .CreateAnnotation ("test/file" , five , five , "error" , "fail-1-2-3" , "this is a failure" )
104
+ annotationOriginalReportedTwice , _ := github .CreateAnnotation ("test/file" , five , five , "error" , "fail-1-2-3 (reported 2 times)" , "this is a failure" )
105
105
106
106
sarifAsWarning := sarif.Result {
107
107
Message : "this is a failure" ,
@@ -112,8 +112,8 @@ func TestSarifsToAnnotationsConverter(t *testing.T) {
112
112
sarif.ResultLocation {Filepath : "test/file" , StartLine : & five }},
113
113
}
114
114
// accuracy of annotation creation tested elsewhere
115
- annotationAsWarning , _ := github .CreateAnnotation ("test/file" , five , five , "warning" , "fail-1-2-3" , "this is a failure" , "raw failure text" )
116
- annotationAsWarningReportedTwice , _ := github .CreateAnnotation ("test/file" , five , five , "warning" , "fail-1-2-3 (reported 2 times)" , "this is a failure" , "raw failure text" )
115
+ annotationAsWarning , _ := github .CreateAnnotation ("test/file" , five , five , "warning" , "fail-1-2-3" , "this is a failure" )
116
+ annotationAsWarningReportedTwice , _ := github .CreateAnnotation ("test/file" , five , five , "warning" , "fail-1-2-3 (reported 2 times)" , "this is a failure" )
117
117
118
118
sarifNewId := sarif.Result {
119
119
Message : "this is a failure" ,
@@ -124,7 +124,7 @@ func TestSarifsToAnnotationsConverter(t *testing.T) {
124
124
sarif.ResultLocation {Filepath : "test/file" , StartLine : & five }},
125
125
}
126
126
// accuracy of annotation creation tested elsewhere
127
- annotationNewId , _ := github .CreateAnnotation ("test/file" , five , five , "error" , "new-id-3" , "this is a failure" , "raw failure text" )
127
+ annotationNewId , _ := github .CreateAnnotation ("test/file" , five , five , "error" , "new-id-3" , "this is a failure" )
128
128
129
129
sarifNewStartLine := sarif.Result {
130
130
Message : "this is a failure" ,
@@ -135,7 +135,7 @@ func TestSarifsToAnnotationsConverter(t *testing.T) {
135
135
sarif.ResultLocation {Filepath : "test/file" , StartLine : & six }},
136
136
}
137
137
// accuracy of annotation creation tested elsewhere
138
- annotationNewStartLine , _ := github .CreateAnnotation ("test/file" , six , six , "error" , "new-id-3" , "this is a failure" , "raw failure text" )
138
+ annotationNewStartLine , _ := github .CreateAnnotation ("test/file" , six , six , "error" , "new-id-3" , "this is a failure" )
139
139
140
140
sarifNewEndLine := sarif.Result {
141
141
Message : "this is a failure" ,
@@ -146,7 +146,7 @@ func TestSarifsToAnnotationsConverter(t *testing.T) {
146
146
sarif.ResultLocation {Filepath : "test/file" , StartLine : & five , EndLine : & ten }},
147
147
}
148
148
// accuracy of annotation creation tested elsewhere
149
- annotationNewEndLine , _ := github .CreateAnnotation ("test/file" , five , ten , "error" , "new-id-3" , "this is a failure" , "raw failure text" )
149
+ annotationNewEndLine , _ := github .CreateAnnotation ("test/file" , five , ten , "error" , "new-id-3" , "this is a failure" )
150
150
151
151
tests := []struct {
152
152
name string
0 commit comments