GitHub快速开始

API 参考取自源码中的 Go 文档注释,以英文书写。

package storetest

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

概述

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.

索引

函数

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.