test

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 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, f func(t expect.Test)) (logger *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.

func (*Logger) Helper

func (l *Logger) Helper()

Jump to

Keyboard shortcuts

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