GitHubCommencer

La référence API provient des commentaires de documentation Go du code source et est rédigée en anglais.

package storetest

import "github.com/nsgo-dev/game/pkg/accounts/storetest"

Vue d’ensemble

Package storetest checks an accounts.Store implementation against the Store contract. A store's tests call Run with a function that opens an empty store.

Index

Fonctions

func Run(t *testing.T, open func(t *testing.T) accounts.Store)

Run runs the contract's tests as subtests of t, each on a new empty store from open.