mock

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package mock implements dependencies for testing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewZeroLog

func NewZeroLog() *zeroLog

NewZeroLog create mock Log, which should not be called.

Types

type Log added in v1.0.0

type Log struct {
	Logged []string
}

func NewLog

func NewLog() *Log

NewLog create mock Log.

func (*Log) Warning added in v1.0.0

func (l *Log) Warning(_ context.Context, msg string)

Jump to

Keyboard shortcuts

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