change: update docstring

This commit is contained in:
lilong.129
2025-05-12 21:35:49 +08:00
parent 4d48a418f9
commit 3b3807770d
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -1 +1 @@
v5.0.0-beta-2505121916 v5.0.0-beta-2505122135
+2 -2
View File
@@ -276,8 +276,8 @@ func (r *HRPRunner) Run(testcases ...ITestCase) (err error) {
return runErr return runErr
} }
// NewCaseRunner initializes a CaseRunner for a given testcase. // NewCaseRunner creates a new case runner for testcase.
// Each testcase is associated with its own CaseRunner instance. // each testcase has its own case runner
// If the provided hrpRunner is nil, a default HRPRunner will be created and used. // If the provided hrpRunner is nil, a default HRPRunner will be created and used.
func NewCaseRunner(testcase TestCase, hrpRunner *HRPRunner) (*CaseRunner, error) { func NewCaseRunner(testcase TestCase, hrpRunner *HRPRunner) (*CaseRunner, error) {
if hrpRunner == nil { if hrpRunner == nil {
+1 -1
View File
@@ -87,7 +87,7 @@ const (
type MobileAction struct { type MobileAction struct {
Method ActionMethod `json:"method,omitempty" yaml:"method,omitempty"` Method ActionMethod `json:"method,omitempty" yaml:"method,omitempty"`
Params interface{} `json:"params,omitempty" yaml:"params,omitempty"` Params interface{} `json:"params,omitempty" yaml:"params,omitempty"`
Fn func() `json:"-" yaml:"-"` // only used for function action, not serialized Fn func() `json:"-" yaml:"-"` // used for function action, not serialized
Options *option.ActionOptions `json:"options,omitempty" yaml:"options,omitempty"` Options *option.ActionOptions `json:"options,omitempty" yaml:"options,omitempty"`
option.ActionOptions option.ActionOptions
} }