gstest

package
v1.2.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bind

func Bind(i interface{}, opts ...conf.BindArg) error

Bind 绑定对象

func Context

func Context() context.Context

func Get

func Get(i interface{}, selectors ...gs.BeanSelector) error

Get 获取对象

func Has

func Has(key string) bool

Has 判断属性是否存在

func Init

func Init() error

Init 初始化测试环境

func Invoke

func Invoke(fn interface{}, args ...gs.Arg) ([]interface{}, error)

Invoke 调用函数

func Keys

func Keys() []string

func Prop

func Prop(key string, opts ...conf.GetOption) string

Prop 获取属性值

func RefreshProperties

func RefreshProperties(p gs.Properties) error

func Resolve

func Resolve(s string) (string, error)

Resolve 解析字符串

func Run

func Run(m *testing.M) (code int)

Run 运行测试用例

func SubKeys

func SubKeys(key string) ([]string, error)

func Wire

func Wire(objOrCtor interface{}, ctorArgs ...gs.Arg) (interface{}, error)

Wire 注入对象

Types

This section is empty.

Jump to

Keyboard shortcuts

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