neo4j-go-driver: github.com/neo4j/neo4j-go-driver/neo4j/test-integration/utils Index | Files

package utils

import "github.com/neo4j/neo4j-go-driver/neo4j/test-integration/utils"

Index

Package Files

error_utils.go mem_log.go

func NewConnectorErrorForTest Uses

func NewConnectorErrorForTest(state int, code int, codeText, context, description string) gobolt.ConnectorError

func NewDatabaseErrorForTest Uses

func NewDatabaseErrorForTest(classification, code, message string) gobolt.DatabaseError

func NewDriverErrorForTest Uses

func NewDriverErrorForTest(format string, args ...interface{}) gobolt.GenericError

type MemoryLogging Uses

type MemoryLogging struct {
    // Errors contains all log messages written at Error level
    Errors []string
    // Warnings contains all log messages written at Warning level
    Warnings []string
    // Infos contains all log messages written at Info level
    Infos []string
    // Debugs contains all log messages written at Debug level
    Debugs []string
}

MemoryLogging collects all log messages into its own data structures, mostly to be used in tests

func (*MemoryLogging) DebugEnabled Uses

func (log *MemoryLogging) DebugEnabled() bool

DebugEnabled returns whether Debug level is enabled

func (*MemoryLogging) Debugf Uses

func (log *MemoryLogging) Debugf(message string, args ...interface{})

Debugf writes a log message at Debug level

func (*MemoryLogging) ErrorEnabled Uses

func (log *MemoryLogging) ErrorEnabled() bool

ErrorEnabled returns whether Error level is enabled

func (*MemoryLogging) Errorf Uses

func (log *MemoryLogging) Errorf(message string, args ...interface{})

Errorf writes a log message at Error level

func (*MemoryLogging) InfoEnabled Uses

func (log *MemoryLogging) InfoEnabled() bool

InfoEnabled returns whether Info level is enabled

func (*MemoryLogging) Infof Uses

func (log *MemoryLogging) Infof(message string, args ...interface{})

Infof writes a log message at Info level

func (*MemoryLogging) WarningEnabled Uses

func (log *MemoryLogging) WarningEnabled() bool

WarningEnabled returns whether Warning level is enabled

func (*MemoryLogging) Warningf Uses

func (log *MemoryLogging) Warningf(message string, args ...interface{})

Warningf writes a log message at Warning level

Package utils imports 2 packages (graph). Updated 2019-03-15. Refresh now. Tools for package owners.