mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-07 06:42:46 +08:00
change: update docstring
This commit is contained in:
@@ -1 +1 @@
|
||||
v5.0.0-beta-2505121916
|
||||
v5.0.0-beta-2505122135
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user