test

package
v0.0.0-...-e1f779c Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2020 License: LGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	Fatals   []string
	Errors   []string
	Messages []string
	// contains filtered or unexported fields
}

Logger implements Test and allows for inspection of the calls.

func New

func New(t *testing.T) *Logger

func (*Logger) Error

func (l *Logger) Error(p ...interface{})

Error records call

func (*Logger) Errorf

func (l *Logger) Errorf(f string, i ...interface{})

Errorf records call

func (*Logger) ExpectMessage

func (l *Logger) ExpectMessage(i int) expect.Val

ExpectMessage returns the message at given index

func (*Logger) ExpectMessages

func (l *Logger) ExpectMessages() expect.Val

ExpectMessages returns the messages as a expect-value

func (*Logger) Fatalf

func (l *Logger) Fatalf(f string, i ...interface{})

Fatalf records call

Jump to

Keyboard shortcuts

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