testutil

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2015 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Overview

Package testutil contains common utilities to test Kythe libraries.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeepEqual added in v0.0.9

func DeepEqual(expected, got interface{}) error

DeepEqual determines if expected is deeply equal to got, returning a detailed error if not.

func Errorf added in v0.0.7

func Errorf(t *testing.T, msg string, err error, args ...interface{})

Errorf calls t.Errorf(msg, err, args...) if err != nil

func FatalOnErr

func FatalOnErr(b *testing.B, msg string, err error, args ...interface{})

FatalOnErr calls b.Fatalf(msg, err, args...) if err != nil

func FatalOnErrT

func FatalOnErrT(t *testing.T, msg string, err error, args ...interface{})

FatalOnErrT calls t.Fatalf(msg, err, args...) if err != nil

func RandBytes

func RandBytes(bytes []byte)

RandBytes fills the given slice with random bytes

func RandStr

func RandStr(size int) string

RandStr returns a random string of the given length

Types

This section is empty.

Jump to

Keyboard shortcuts

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