Debian Codegraph @

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

raw
1 //line main.go:1:1
2 package main; import __antithesis_instrumentation__ "antithesis.notifier/zad602425a68e"
3
4 import (
5 "fmt"
6
7 "github.com/antithesishq/antithesis-sdk-go/assert"
8 )
9
10 func foo(b bool) {__antithesis_instrumentation__.Notify(1)
11 if b {__antithesis_instrumentation__.Notify(2)
12 fmt.Println("b is true")
13 } else {__antithesis_instrumentation__.Notify(3)
14 fmt.Println("b is false")
15 assert.Reachable("reached the else branch", nil)
16 }
17 }
18
19 func main() {__antithesis_instrumentation__.Notify(4)
20 fmt.Println("Hello, world!")
21 assert.Always(true, "always in main", nil)
22 foo(true)
23 foo(false)
24 }