| 1 |
|
| 2 |
|
| 3 |
package main |
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
import "github.com/antithesishq/antithesis-sdk-go/assert" |
| 14 |
|
| 15 |
func init() { |
| 16 |
|
| 17 |
const condFalse = false |
| 18 |
const condTrue = true |
| 19 |
const wasHit = true |
| 20 |
const notHit = !wasHit |
| 21 |
const mustBeHit = true |
| 22 |
|
| 23 |
const universalTest = "always" |
| 24 |
|
| 25 |
const reachabilityTest = "reachability" |
| 26 |
|
| 27 |
var noDetails map[string]any = nil |
| 28 |
|
| 29 |
|
| 30 |
assert.AssertRaw(condTrue, "reached the else branch", noDetails, "example.com/e2e-test", "foo", "main.go", 14, notHit, mustBeHit, reachabilityTest, "Reachable", "reached the else branch") |
| 31 |
|
| 32 |
|
| 33 |
assert.AssertRaw(condFalse, "always in main", noDetails, "example.com/e2e-test", "main", "main.go", 20, notHit, mustBeHit, universalTest, "Always", "always in main") |
| 34 |
} |
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
|