Debian Codegraph @

tools/antithesis-go-instrumentor/scanners/coverage/instrumentor/testdata/golden/init_func/input.go

raw
1 package sample
2
3 var ready bool
4
5 // init is deliberately NOT instrumented -- it runs regardless, so counting
6 // it is just noise. Ready should still be instrumented.
7 func init() {
8 ready = true
9 }
10
11 func Ready() bool {
12 return ready
13 }