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

View File

@@ -1 +1 @@
v5.0.0-beta-2505121916
v5.0.0-beta-2505122135

View File

@@ -276,8 +276,8 @@ func (r *HRPRunner) Run(testcases ...ITestCase) (err error) {
return runErr
}
// NewCaseRunner initializes a CaseRunner for a given testcase.
// Each testcase is associated with its own CaseRunner instance.
// NewCaseRunner creates a new case runner for testcase.
// each testcase has its own case runner
// If the provided hrpRunner is nil, a default HRPRunner will be created and used.
func NewCaseRunner(testcase TestCase, hrpRunner *HRPRunner) (*CaseRunner, error) {
if hrpRunner == nil {

View File

@@ -87,7 +87,7 @@ const (
type MobileAction struct {
Method ActionMethod `json:"method,omitempty" yaml:"method,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"`
option.ActionOptions
}