test

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package test has functions to help commons asserts

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertBodyContains

func AssertBodyContains(
	t *testing.T,
	bodyReader io.Reader,
	expectedMsg string,
)

func AssertBodyContainsStruct

func AssertBodyContainsStruct(
	t *testing.T,
	bodyReader io.Reader,
	expectedMsg interface{},
)

func AssertContains

func AssertContains(t *testing.T, s, substr string)

func AssertEqual

func AssertEqual(t *testing.T, obj1 interface{}, obj2 interface{})

func AssertNoError

func AssertNoError(t *testing.T, err error)

func AssertNotNil

func AssertNotNil(t *testing.T, value interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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