testing

package
v1.1.657 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CompareUnexported = cmp.Exporter(func(reflect.Type) bool { return true })

CompareUnexported allows cmp to compare private fields of internal structs

Functions

func BaseAuthorizationRequest

func BaseAuthorizationRequest() *sleet.AuthorizationRequest

BaseAuthorizationRequest is used as a testing helper method to standardize request calls for integration tests

func BaseCaptureRequest added in v1.1.414

func BaseCaptureRequest() *sleet.CaptureRequest

func BaseLevel3Data added in v1.1.637

func BaseLevel3Data() *sleet.Level3Data

BaseLevel3Data is used as a testing helper method to standardize request calls for integration tests

func BaseRefundRequest added in v1.1.414

func BaseRefundRequest() *sleet.RefundRequest

func BaseVoidRequest added in v1.1.414

func BaseVoidRequest() *sleet.VoidRequest

Types

type TestHelper added in v1.1.420

type TestHelper struct {
	// contains filtered or unexported fields
}

TestHelper methods exist to provide handle mundane tasks which can result in error without clogging test files with unimportant error checking code

func NewTestHelper added in v1.1.420

func NewTestHelper(t *testing.T) TestHelper

func (TestHelper) ReadFile added in v1.1.420

func (h TestHelper) ReadFile(path string) []byte

func (TestHelper) Unmarshal added in v1.1.420

func (h TestHelper) Unmarshal(data []byte, destination interface{})

func (TestHelper) XmlUnmarshal added in v1.1.476

func (h TestHelper) XmlUnmarshal(data []byte, destination interface{})

Jump to

Keyboard shortcuts

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