mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-07 07:21:23 +08:00
docs: add comments
This commit is contained in:
@@ -7,11 +7,13 @@ type stepRequestExtraction struct {
|
|||||||
step *TStep
|
step *TStep
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// WithJmesPath sets the JMESPath expression to extract from the response.
|
||||||
func (s *stepRequestExtraction) WithJmesPath(jmesPath string, varName string) *stepRequestExtraction {
|
func (s *stepRequestExtraction) WithJmesPath(jmesPath string, varName string) *stepRequestExtraction {
|
||||||
s.step.Extract[varName] = jmesPath
|
s.step.Extract[varName] = jmesPath
|
||||||
return s
|
return s
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Validate switches to step validation.
|
||||||
func (s *stepRequestExtraction) Validate() *stepRequestValidation {
|
func (s *stepRequestExtraction) Validate() *stepRequestValidation {
|
||||||
return &stepRequestValidation{
|
return &stepRequestValidation{
|
||||||
step: s.step,
|
step: s.step,
|
||||||
|
|||||||
Reference in New Issue
Block a user