testutil

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2015 License: Apache-2.0 Imports: 2 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 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