MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / TestMain

Function TestMain

twopc/twopc_test.go:408–418  ·  view source on GitHub ↗
(m *testing.M)

Source from the content-addressed store, hash-verified

406}
407
408func 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
420func TestTwoPhaseCommit(t *testing.T) {
421 c := twopc.NewCoordinator(twopc.NewOptions(5 * time.Second))

Callers

nothing calls this directly

Calls 3

testTearDownFunction · 0.85
PrintlnMethod · 0.80
testSetupFunction · 0.70

Tested by

no test coverage detected