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

tt

package
v1.24.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2024 License: MIT Imports: 11 Imported by: 1

Documentation

Overview

Package tt is a simple test package for the ojg package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal

func Equal(t *testing.T, expect, actual any, args ...any) (eq bool)

Equal return true if two values are equal and fails a test if not equal.

func Nil

func Nil(t *testing.T, actual any, args ...any)

Nil check.

func NotEqual added in v1.14.2

func NotEqual(t *testing.T, expect, actual any, args ...any) (eq bool)

NotEqual return true if two values are not equal and fails a test if equal.

func NotNil

func NotNil(t *testing.T, actual any, args ...any)

NotNil check.

func Panic added in v1.11.0

func Panic(t *testing.T, fun func(), args ...any) (r any)

Panic verifies that a function panics..

func SameType added in v1.14.2

func SameType(t *testing.T, expect, actual any, args ...any) (eq bool)

SameType returns true if the actual and expected values are of the same type.

Types

type ShortReader

type ShortReader struct {
	Max     int
	Content []byte
	// contains filtered or unexported fields
}

ShortReader readons only the designated amount and then returns an error.

func (*ShortReader) Read

func (r *ShortReader) Read(p []byte) (n int, err error)

Read the next batch of bytes.

Jump to

Keyboard shortcuts

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