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

stegol

package module
v0.1.1 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 = 1
	VersionPatch int16 = 1
	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, 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 value against an array of expected string values, calling testing.T.Errorf() if the evaluation fails. The evaluation is done by equality comparison

func CheckStringEqualIgnoreCase

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

CheckStringEqualIgnoreCase() evaluates two strings, calling testing.T.Errorf() if the evaluation fails. The evaluation is done by equalitycomparison via the strings.EqualFold() standard library function.

func CheckStringEqualTrimmed

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

CheckStringEqualTrimmed() evaluates two strings, 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