testhelpers

package
v0.0.0-...-f111e9b Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ValidBIN = regexp.MustCompile(`^\d{6}$`).MatchString
View Source
var ValidExpiryMonth = regexp.MustCompile(`^\d{2}$`).MatchString
View Source
var ValidExpiryYear = regexp.MustCompile(`^\d{4}$`).MatchString
View Source
var ValidLast4 = regexp.MustCompile(`^\d{4}$`).MatchString

Functions

func BoolPtr

func BoolPtr(b bool) *bool

func IntPtr

func IntPtr(i int) *int

func RandomInt

func RandomInt() int64

func RandomString

func RandomString() string

func StringSliceContains

func StringSliceContains(list []string, s string) bool

StringSliceContains checks whether a slice of strings contains a given string

Types

This section is empty.

Jump to

Keyboard shortcuts

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