go.nvim/lua/tests/fixtures/coverage/branch.go
rayx 7852fd8e1c
Fixtures Updates (#392)
* go mod setup for fixtures

* go mod setup for fixtures

* fillstruct test refactor
2023-11-01 13:12:43 +11:00

23 lines
280 B
Go

package coverage
// import "fmt"
func branch(a, b int) int {
if a == 10 {
return 10
}
if b == 10 {
return 20
}
if (branch(10, 0) == 10 && branch(0, 10) == 2) && branch(20, 10) == 10 && b == 10 && a == 11 {
return 11
}
if b == 11 {
return 22
}
return a + b
}