Documentation ¶
Index ¶
- Constants
- Variables
- func All(t *testing.T, testFunc func(ctx context.Context, t *testing.T, db *gorm.DB))
- func EscapePath(p string) string
- func GenerateFixedBytes(length int) []byte
- func GenerateRandomBytes(n int) []byte
- func GetFileTimestamp(t *testing.T, path string) int64
- func One(t *testing.T, testFunc func(ctx context.Context, t *testing.T, db *gorm.DB))
- func OneWithoutReset(t *testing.T, testFunc func(ctx context.Context, t *testing.T, db *gorm.DB))
- func RandomLetterString(length int) string
- type CloserFunc
Constants ¶
View Source
const TestPrivateKeyHex = "" /* 160-byte string literal not displayed */
View Source
const TestWalletAddr = "f1fib3pv7jua2ockdugtz7viz3cyy6lkhh7rfx3sa"
Variables ¶
View Source
var SupportedTestDialects = []string{"sqlite", "mysql", "postgres"}
View Source
var TestCid = cid.NewCidV1(cid.Raw, util.Hash([]byte("test")))
Functions ¶
func EscapePath ¶ added in v0.4.0
func GenerateFixedBytes ¶ added in v0.4.0
func GenerateRandomBytes ¶
func OneWithoutReset ¶ added in v0.4.0
func RandomLetterString ¶ added in v0.4.0
Types ¶
type CloserFunc ¶ added in v0.4.0
type CloserFunc func() error
func (CloserFunc) Close ¶ added in v0.4.0
func (f CloserFunc) Close() error
Click to show internal directories.
Click to hide internal directories.