test

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{
	Use: "test",
	Short: "test a plugin's functionality. this command expect plugin tested be\n" +
		"built with PluginInfo(-i of build command)",
}

Functions

This section is empty.

Types

type ResultTest

type ResultTest struct {
	T      Test `json:"test"`
	Result any  `json:"result"`
	Passed bool `json:"passed,omitempty"`
}

type Test

type Test struct {
	Args   []any `json:"args,omitempty"`   // 测试参数列表
	Expect any   `json:"expect,omitempty"` // 期望返回值
}

Jump to

Keyboard shortcuts

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