tests

package
v0.0.0-...-e6fe8c5 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package tests provides helper methods for testing

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compare

func Compare(t *testing.T, cache cacher.Cacher, key string, value interface{})

Compare compares a cached value given by the cache and the key to the value passed in as an interface. If the values do not match, the given test will receive a `FailNow()` call and print an appropiate error message.

func FailMsg

func FailMsg(t *testing.T, cache cacher.Cacher, msg string, s ...interface{})

FailMsg will print an error message that specifies the cache type and fail the given test instance.

func NotPresent

func NotPresent(t *testing.T, cache cacher.Cacher, key string)

NotPresent ensures that the given key is not present in the given cache. If it is present, the test will fail and print an error message.

Types

This section is empty.

Jump to

Keyboard shortcuts

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