testutil

package
Version: v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2020 License: MIT Imports: 8 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