(m *testing.M)
| 406 | } |
| 407 | |
| 408 | func TestMain(m *testing.M) { |
| 409 | err := testSetup() |
| 410 | |
| 411 | if err != nil { |
| 412 | fmt.Println("Failed to setup test environment.") |
| 413 | os.Exit(1) |
| 414 | } |
| 415 | |
| 416 | defer testTearDown() |
| 417 | os.Exit(m.Run()) |
| 418 | } |
| 419 | |
| 420 | func TestTwoPhaseCommit(t *testing.T) { |
| 421 | c := twopc.NewCoordinator(twopc.NewOptions(5 * time.Second)) |
nothing calls this directly
no test coverage detected