seqtest

package
v0.0.0-...-917641f Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package seqtest implements a standard suite of validations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForEachTest

func ForEachTest(left, right StringMutator, validate Validator)

ForEachTest iterates through all the tests

Types

type StringMutator

type StringMutator interface {
	Splice(initial string, offset, count int, replacement string) interface{}
	Move(initial string, offset, count, distance int) interface{}
	Range(initial string, offset, count int, attribute string) interface{}
}

StringMutator is the interface to create changes

type Validator

type Validator func(name, initial string, left, right interface{}, merged string)

Validator is the interface to actually implement changes

Jump to

Keyboard shortcuts

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