testutils

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertEqual

func AssertEqual(t *testing.T, got, exp interface{}, context string)

func CaptureLogs

func CaptureLogs() *capturedLogs

Types

type IndentLogger

type IndentLogger struct {
	Color bool
	// contains filtered or unexported fields
}

IndentLogger enable to write debug message with a tree structure.

func (*IndentLogger) Line

func (il *IndentLogger) Line(format string, args ...interface{})

Line simply writes the message without changing the indentation.

func (*IndentLogger) LineWithDedent

func (il *IndentLogger) LineWithDedent(format string, args ...interface{})

LineWithDedent decreases the level, then write the message.

func (*IndentLogger) LineWithIndent

func (il *IndentLogger) LineWithIndent(format string, args ...interface{})

LineWithIndent prints the message with the given indent level, then increases it.

Directories

Path Synopsis
Package tracer provides a function to dump the current layout tree, which may be used in debug mode.
Package tracer provides a function to dump the current layout tree, which may be used in debug mode.

Jump to

Keyboard shortcuts

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