testutil

package
v1.15.1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsError

func ContainsError(t *testing.T, err error, msg string)

ContainsError checks if error contains specified substring

func GetLogger

func GetLogger(t *testing.T) *zap.SugaredLogger

GetLogger returns test zap logger instance for test

func OpenTestdata

func OpenTestdata(t *testing.T, fPath string) io.ReadWriteCloser

OpenTestdata returns opened file from testdata

func ReadTestdata

func ReadTestdata(t *testing.T, fPath string) []byte

ReadTestdata reads testdata file

func TestdataPath

func TestdataPath(fPath string) string

TestdataPath returns file path from testdata

Types

This section is empty.

Jump to

Keyboard shortcuts

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