validationtest

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package validationtest contains helper functions for testing purposes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertIsViolation

func AssertIsViolation(t *testing.T, err error, assert AssertViolationFunc) bool

func AssertIsViolationList

func AssertIsViolationList(t *testing.T, err error, assert AssertViolationListFunc) bool

Types

type AssertViolationFunc

type AssertViolationFunc func(t *testing.T, violation validation.Violation) bool

type AssertViolationListFunc

type AssertViolationListFunc func(t *testing.T, violations []validation.Violation) bool

Jump to

Keyboard shortcuts

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