mirror of
https://github.com/mgechev/revive.git
synced 2025-03-17 20:57:58 +02:00
adds test cases for ranges
This commit is contained in:
parent
ef265b07dd
commit
7787615901
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/
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user