mirror of
https://github.com/mgechev/revive.git
synced 2025-11-23 22:04:49 +02:00
adds test cases for ranges
This commit is contained in:
14
testdata/unconditional-recursion.go
vendored
14
testdata/unconditional-recursion.go
vendored
@@ -164,3 +164,17 @@ func urn15() {
|
||||
}
|
||||
urn15()
|
||||
}
|
||||
|
||||
func urn16(ch chan int) {
|
||||
for range ch {
|
||||
log.Panic("")
|
||||
}
|
||||
urn16(ch)
|
||||
}
|
||||
|
||||
func urn17(ch chan int) {
|
||||
for range ch {
|
||||
print("")
|
||||
}
|
||||
urn17(ch) // MATCH /unconditional recursive call/
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user