test_util

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2015 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckDirsMatch

func CheckDirsMatch(t *testing.T, expectedDir string, gotDir string)

CheckDirsMatch recursively iterates through expectedDir and checks that the directory structure and the contents of each file match gotDir exactly. If anything does not match, it adds an error to t.

func CheckFilesMatch

func CheckFilesMatch(t *testing.T, expectedPath string, gotPath string)

CheckFilesMatch adds an error to t iff the contents of the file at gotPath do not match exactly the contents of the file at expectedPath.

func CheckStringsMatch

func CheckStringsMatch(t *testing.T, expected []string, got []string)

CheckStringsMatch adds an error to t iff the elements in got do not match exactly the elements in expected (irrespective of order).

Types

This section is empty.

Jump to

Keyboard shortcuts

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