tests

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunGenericVerifierTests

func RunGenericVerifierTests(t *testing.T, v iap.Verifier, msgGen MessageGenerator, validReceiptFunc ValidReceiptFromMessage, teardown func())

func RunServerTests

func RunServerTests(t *testing.T, accounts account.Store, iaps iap.Store, verifer iap.Verifier, validReceiptFunc func(msg string) string, teardown func())

RunServerTests runs a set of tests against the iap.Server.

func RunStoreTests

func RunStoreTests(t *testing.T, s iap.Store, teardown func())

Types

type MessageGenerator

type MessageGenerator func() string

type ValidReceiptFromMessage

type ValidReceiptFromMessage func(message string) string

Jump to

Keyboard shortcuts

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