Debian Codegraph @

tools/antithesis-go-instrumentor/testdata/expected_output/customer/main.go

raw
1 package main
2
3 import (
4 "fmt"
5
6 __antithesis_instrumentation__ "antithesis.notifier/zad602425a68e"
7 "github.com/antithesishq/antithesis-sdk-go/assert"
8 )
9
10 //line main.go:9
11 func foo(b bool) {
12 __antithesis_instrumentation__.Notify(1)
13
14 //line main.go:10
15 if b {
16 __antithesis_instrumentation__.Notify(2)
17
18 //line main.go:11
19 fmt.Println("b is true")
20
21 //line main.go:12
22 } else {
23 __antithesis_instrumentation__.Notify(3)
24
25 //line main.go:13
26 fmt.Println("b is false")
27
28 //line main.go:14
29 assert.Reachable("reached the else branch", nil)
30 }
31 }
32
33 //line main.go:18
34 func main() {
35 __antithesis_instrumentation__.Notify(4)
36
37 //line main.go:19
38 fmt.Println("Hello, world!")
39
40 //line main.go:20
41 assert.Always(true, "always in main", nil)
42
43 //line main.go:21
44 foo(true)
45
46 //line main.go:22
47 foo(false)
48 }