ds3Testing

package
v5.6.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertBadStatusCodeError

func AssertBadStatusCodeError(t *testing.T, expectedCode int, err error)

func AssertBool

func AssertBool(t *testing.T, label string, expected bool, actual bool)

Asserts if a specified bool has the expected value. If not, Fatal.

func AssertBoolPtrIsNil

func AssertBoolPtrIsNil(t *testing.T, label string, actual *bool)

Asserts if a specified bool pointer is nil. If not, Fatal.

func AssertInt

func AssertInt(t *testing.T, label string, expected int, actual int)

Asserts if a specified int64 has the expected value. If not, Fatal.

func AssertInt64

func AssertInt64(t *testing.T, label string, expected int64, actual int64)

Asserts if a specified int64 has the expected value. If not, Fatal.

func AssertInt64PtrIsNil

func AssertInt64PtrIsNil(t *testing.T, label int64, actual *int64)

Asserts if a specified int64 is nil. If not, Fatal.

func AssertIntPtrIsNil

func AssertIntPtrIsNil(t *testing.T, label string, actual *int)

Asserts if a specified int64 is nil. If not, Fatal.

func AssertNilError

func AssertNilError(t *testing.T, err error)

Asserts that an error is nil, else Fatal.

func AssertNonNilBoolPtr

func AssertNonNilBoolPtr(t *testing.T, label string, expected bool, actual *bool)

Asserts if a specified bool pointer has the expected value. If not, Fatal.

func AssertNonNilInt64Ptr

func AssertNonNilInt64Ptr(t *testing.T, label string, expected int64, actual *int64)

Asserts if a specified int64 pointer has the expected value. If not, Fatal.

func AssertNonNilIntPtr

func AssertNonNilIntPtr(t *testing.T, label string, expected int, actual *int)

Asserts if a specified int64 pointer has the expected value. If not, Fatal.

func AssertNonNilStringPtr

func AssertNonNilStringPtr(t *testing.T, label string, expected string, actual *string)

Asserts if a specified string pointer has the expected value. If not, Fatal.

func AssertString

func AssertString(t *testing.T, label string, expected string, actual string)

Asserts if a specified string has the expected value. If not, Fatal.

func AssertStringPtrIsNil

func AssertStringPtrIsNil(t *testing.T, label string, actual *string)

Asserts if a specified string pointer is nil. If not, Fatal.

Types

This section is empty.

Jump to

Keyboard shortcuts

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