mock

package
v1.10.19 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ValidPhoneVerificationToken can be used to test successful confirmation
	// of active phone verifications.
	ValidPhoneVerificationToken = "123456"

	// InvalidPhoneVerificationToken can be used to test unsuccessful confirmation
	// of phone verifications.
	InvalidPhoneVerificationToken = "999999"
)

Variables

This section is empty.

Functions

func NewVerifier

func NewVerifier() phone.Verifier

NewVerifier returns a new in memory phone verifier that always "sends" a code with value 123456. Verifications are long lived and will be completed when either canceled or pass validation.

Types

This section is empty.

Jump to

Keyboard shortcuts

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