assert2

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package assert2 provides hepler functions for testing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal

func Equal(tb testing.TB, exp, act interface{})

Equal fails the test if exp is not equal to act.

func EqualFiles

func EqualFiles(t *testing.T, fn0, fn1 string)

EqualFiles fails test if contence is NOT equal

func EqualLines

func EqualLines(tb testing.TB, exp, act string)

EqualLines compares exp and act line by line ignoring lineendings and leading/trailing spaces.

func EqualTextFiles

func EqualTextFiles(t *testing.T, fn0, fn1 string)

EqualTextFiles fails test if lines in fn0 & fn1 NOT equal. Line endings are ignored

Types

This section is empty.

Jump to

Keyboard shortcuts

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