ulogtest

package
v7.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2020 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package ulogtest implement the Logger interface via a test's testing.TB.Logf.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	TB testing.TB
}

Logger is a Logger implementation that logs to testing.TB.Logf.

func (Logger) Print

func (tl Logger) Print(v ...interface{})

Print formats according the default formats for v and prints to a unit test's log.

func (Logger) Printf

func (tl Logger) Printf(format string, v ...interface{})

Printf formats according to the format specifier and prints to a unit test's log.

Jump to

Keyboard shortcuts

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