valtest_test

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2020 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Overview

Package valtest_test defines a fakeValidator that can be used in tests

Index

Constants

View Source
const SAD = "i'm not happy Bob, NOT HAPPY"

SAD is an error string.

Variables

This section is empty.

Functions

func MakeFakeValidator

func MakeFakeValidator() *fakeValidator

MakeFakeValidator makes an empty Fake Validator.

func MakeHappyMapValidator

func MakeHappyMapValidator(t *testing.T) *fakeValidator

MakeHappyMapValidator makes a fakeValidator that always passes.

func MakeSadMapValidator

func MakeSadMapValidator(t *testing.T) *fakeValidator

MakeSadMapValidator makes a fakeValidator that always fails.

Types

This section is empty.

Jump to

Keyboard shortcuts

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