Skip to content

Commit a43fe64

Browse files
author
Denis Krivak
committed
Don`t check test example comments.
1 parent e366a23 commit a43fe64

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

checks.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,9 @@ func isSpecialBlock(comment string) bool {
240240
strings.Contains(comment, "#define")) {
241241
return true
242242
}
243+
if strings.HasPrefix(comment, "// Output: ") {
244+
return true
245+
}
243246
return false
244247
}
245248

checks_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,11 @@ func TestIsSpecialBlock(t *testing.T) {
248248
*/`,
249249
isSpecial: true,
250250
},
251+
{
252+
name: "Test output",
253+
comment: "// Output: true",
254+
isSpecial: true,
255+
},
251256
}
252257

253258
for _, tt := range testCases {

0 commit comments

Comments
 (0)