Debian Codegraph @

tools/antithesis-go-toolexec/testdata/multipackage/shared/shared.go

raw
1 package shared
2
3 var Eager = Classify(7)
4
5 func Classify(n int) string {
6 if n > 5 {
7 return "high"
8 }
9 if n > 0 {
10 return "low"
11 }
12 return "none"
13 }
14
15 func Scale(n int) int {
16 if n%2 == 0 {
17 return n * 2
18 }
19 return n * 3
20 }