stress

package
v1.8.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FailingQueryExecutor

func FailingQueryExecutor(driver neo4j.Driver, useBookmark bool) func(ctx *TestContext)

FailingQueryExecutor returns a new test executor which fails in streaming using Session.Run

func FailingQueryInTxExecutor

func FailingQueryInTxExecutor(driver neo4j.Driver, useBookmark bool) func(ctx *TestContext)

FailingQueryInTxExecutor returns a new test executor which fails in streaming using Transaction.Run

func FailingQueryWithReadTransactionExecutor

func FailingQueryWithReadTransactionExecutor(driver neo4j.Driver, useBookmark bool) func(ctx *TestContext)

FailingQueryWithReadTransactionExecutor returns a new test executor which fails in streaming using Session.ReadTransaction

func FailingQueryWithWriteTransactionExecutor

func FailingQueryWithWriteTransactionExecutor(driver neo4j.Driver, useBookmark bool) func(ctx *TestContext)

FailingQueryWithWriteTransactionExecutor returns a new test executor which fails in streaming using Session.WriteTransaction

func ReadQueryExecutor

func ReadQueryExecutor(driver neo4j.Driver, useBookmark bool) func(ctx *TestContext)

ReadQueryExecutor returns a new test executor which reads using Session.Run

func ReadQueryInTxExecutor

func ReadQueryInTxExecutor(driver neo4j.Driver, useBookmark bool) func(ctx *TestContext)

ReadQueryInTxExecutor returns a new test executor which reads using Transaction.Run

func ReadQueryWithReadTransactionExecutor

func ReadQueryWithReadTransactionExecutor(driver neo4j.Driver, useBookmark bool) func(ctx *TestContext)

ReadQueryWithReadTransactionExecutor returns a new test executor which reads using Session.ReadTransaction

func WriteQueryExecutor

func WriteQueryExecutor(driver neo4j.Driver, useBookmark bool) func(ctx *TestContext)

WriteQueryExecutor returns a new test executor which writes using Session.Run

func WriteQueryInReadSessionExecutor

func WriteQueryInReadSessionExecutor(driver neo4j.Driver, useBookmark bool) func(ctx *TestContext)

WriteQueryInReadSessionExecutor returns a new test executor which tries writes using Session.Run with read access mode

func WriteQueryInTxExecutor

func WriteQueryInTxExecutor(driver neo4j.Driver, useBookmark bool) func(ctx *TestContext)

WriteQueryInTxExecutor returns a new test executor which writes using Transaction.Run

func WriteQueryInTxInReadSessionExecutor

func WriteQueryInTxInReadSessionExecutor(driver neo4j.Driver, useBookmark bool) func(ctx *TestContext)

WriteQueryInTxInReadSessionExecutor returns a new test executor which tries writes using Transaction.Run with read access mode

func WriteQueryWithWriteTransactionExecutor

func WriteQueryWithWriteTransactionExecutor(driver neo4j.Driver, useBookmark bool) func(ctx *TestContext)

WriteQueryWithWriteTransactionExecutor returns a new test executor which writes using Session.WriteTransaction

func WrongQueryExecutor

func WrongQueryExecutor(driver neo4j.Driver) func(ctx *TestContext)

WrongQueryExecutor returns a new test executor which fails using Session.Run

func WrongQueryInTxExecutor

func WrongQueryInTxExecutor(driver neo4j.Driver) func(ctx *TestContext)

WrongQueryInTxExecutor returns a new test executor which fails using Transaction.Run

Types

type TestContext

type TestContext struct {
	// contains filtered or unexported fields
}

TestContext provides state data shared across tests

func NewTestContext

func NewTestContext(driver neo4j.Driver) *TestContext

NewTestContext returns a new TestContext

func (*TestContext) PrintStats

func (ctx *TestContext) PrintStats()

PrintStats writes summary information about the completed test

func (*TestContext) ShouldStop

func (ctx *TestContext) ShouldStop() bool

ShouldStop returns whether a stop is signalled

func (*TestContext) Stop

func (ctx *TestContext) Stop()

Stop signals a stop

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL