func (ctx *TestContext) Stop() {
	atomic.CompareAndSwapInt32(&ctx.stop, 0, 1)
}
Stop signals a stop
package main
import (
	"fmt"
	"sync"
	"sync/atomic"
	"github.com/neo4j/neo4j-go-driver/v4/neo4j"
)
type TestContext struct {
	driver   neo4j.Driver
	stop     int32
	bookmark atomic.Value
	readNodeCountsByServer sync.Map
	readNodeCount       int32
	createdNodeCount    int32
	failedBookmarkCount int32
}
func NewTestContext(driver neo4j.Driver) *TestContext {
	result := &TestContext{
		driver:                 driver,
		stop:                   0,
		bookmark:               atomic.Value{},
		readNodeCountsByServer: sync.Map{},
		readNodeCount:          0,
		createdNodeCount:       0,
	}
	result.bookmark.Store("")
	return result
}
func (ctx *TestContext) ShouldStop() bool {
	return atomic.LoadInt32(&ctx.stop) > 0
}