tests

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2023 License: MIT Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestingInitializer added in v0.0.52

type TestingInitializer interface {
	application.Initializer

	T() *testing.T

	UseResourcesFS(efs *embed.FS, path string) TestingInitializer
	PrepareTestingDataFromResource(name string) TestingInitializer
	LoadPropertisFromGitConfig(required bool) TestingInitializer

	RunTest() TestingRuntime
}

TestingInitializer 是对 application.Initializer 的扩展,添加了几个用于测试的功能

func Starter added in v0.0.52

func Starter(t *testing.T) TestingInitializer

Starter 创建一个测试用的启动器

type TestingRuntime added in v0.0.52

type TestingRuntime interface {
	application.Runtime

	T() *testing.T
	TestingDataDir() fs.Path
}

TestingRuntime 是对 application.Runtime 的扩展,添加了几个用于测试的功能

Jump to

Keyboard shortcuts

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