You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
go.nvim/lua/tests/fixtures/coverage/branch.go

23 lines
194 B
Go

3 years ago
package main
// import "fmt"
func branch(a, b int) int {
if a == 10 {
return 10
}
if b == 10 {
return 20
}
if a == 11 {
return 11
}
if b == 11 {
return 22
}
return a + b
}