Help us shape the future of Go! Take the 2026 Go Developer Survey

stegol

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2019 License: BSD-3-Clause Imports: 4 Imported by: 0

README

STEGoL

Simple Testing Enhancements for the Go Language

Introduction

T.B.C.

Table of Contents

  1. Introduction
  2. Installation
  3. Components
  4. Examples
  5. Project Information

Installation


import stegol "github.com/synesissoftware/STEGoL"

Components

T.B.C.

Examples

T.B.C.

Project Information

Where to get help

GitHub Page

Contribution guidelines

Defect reports, feature requests, and pull requests are welcome on https://github.com/synesissoftware/STEGoL.

Dependencies

T.B.C.

License

STEGoL is released under the 3-clause BSD license. See LICENSE for details.

Documentation

Index

Constants

View Source
const (
	VersionMajor int16 = 0
	VersionMinor int16 = 2
	VersionPatch int16 = 0
	Version      int64 = (int64(VersionMajor) << 48) + (int64(VersionMinor) << 32) + (int64(VersionPatch) << 16)

	VersionRevision int16 = VersionPatch
)
View Source
const (
	CheckStringFlag_None = 1 << iota
)

Variables

This section is empty.

Functions

func CheckStringByStringMatch

func CheckStringByStringMatch(t *testing.T, pattern string, actual string, options ...interface{})

func CheckStringCompare

func CheckStringCompare(t *testing.T, expected, actual string, fn StringCompareFunc, comparison_type string, options ...interface{})

CheckStringCompare() evaluates two strings, calling testing.T.Errorf() if the evaluation fails. The evaluation is done by the given caller-supplied comparison function, whose brief descriptor comparison_type, e.g. "regular expression" will be prefixed with the string "when compared by ".

func CheckStringEqual

func CheckStringEqual(t *testing.T, expected, actual string, options ...interface{})

CheckStringEqual() evaluates two strings for equality, calling testing.T.Errorf() if the evaluation fails. The evaluation is done by equality comparison.

func CheckStringEqualAny

func CheckStringEqualAny(t *testing.T, expecteds []string, actual string, options ...interface{})

CheckStringEqualAny() evaluates a string for equality against an array of string values, calling testing.T.Errorf() if every evaluation fails. Each evaluation is done by equality comparison.

func CheckStringEqualChomped added in v0.2.0

func CheckStringEqualChomped(t *testing.T, expected, actual string, options ...interface{})

CheckStringEqualChomped() evaluates two strings for equality, calling testing.T.Errorf() if the evaluation fails. The evaluation is done by equality comparison after chomping the actual value.

func CheckStringEqualIgnoreCase

func CheckStringEqualIgnoreCase(t *testing.T, expected, actual string, options ...interface{})

CheckStringEqualIgnoreCase() evaluates two strings for equality, calling testing.T.Errorf() if the evaluation fails. The evaluation is done by equality comparison ignoring the case of the strings, via the strings.EqualFold() standard library function.

func CheckStringEqualTrimmed

func CheckStringEqualTrimmed(t *testing.T, expected, actual string, options ...interface{})

CheckStringEqualTrimmed() evaluates two strings for equality, calling testing.T.Errorf() if the evaluation fails. The evaluation is done by equality comparison after whitespace-trimming the actual value.

func CheckStringNotEqual added in v0.2.0

func CheckStringNotEqual(t *testing.T, expected, actual string, options ...interface{})

CheckStringNotEqual() evaluates two strings for inequality, calling testing.T.Errorf() if the evaluation fails. The evaluation is done by equality comparison.

func CheckStringNotEqualChomped added in v0.2.0

func CheckStringNotEqualChomped(t *testing.T, expected, actual string, options ...interface{})

CheckStringNotEqualChomped() evaluates two strings for inequality, calling testing.T.Errorf() if the evaluation fails. The evaluation is done by equality comparison after chomping the actual value.

func CheckStringNotEqualIgnoreCase added in v0.2.0

func CheckStringNotEqualIgnoreCase(t *testing.T, expected, actual string, options ...interface{})

CheckStringEqualIgnoreCase() evaluates two strings for inequality, calling testing.T.Errorf() if the evaluation fails. The evaluation is done by equality comparison ignoring the case of the strings, via the strings.EqualFold() standard library function.

func CheckStringNotEqualTrimmed added in v0.2.0

func CheckStringNotEqualTrimmed(t *testing.T, expected, actual string, options ...interface{})

CheckStringNotEqualTrimmed() evaluates two strings for inequality, calling testing.T.Errorf() if the evaluation fails. The evaluation is done by equality comparison after whitespace-trimming the actual value.

Types

type CheckStringFlag

type CheckStringFlag int

type StringCompareFunc

type StringCompareFunc func(expected, actual string) bool

Jump to

Keyboard shortcuts

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