docs: add docs for IStep

This commit is contained in:
debugtalk
2022-03-30 16:56:31 +08:00
parent a92820a3b1
commit d08368ad17
11 changed files with 107 additions and 11 deletions

View File

@@ -703,7 +703,7 @@ func (s *StepRequestWithOptionalArgs) Type() StepType {
return StepType(fmt.Sprintf("request-%v", s.step.Request.Method))
}
func (s *StepRequestWithOptionalArgs) ToStruct() *TStep {
func (s *StepRequestWithOptionalArgs) Struct() *TStep {
return s.step
}
@@ -737,7 +737,7 @@ func (s *StepRequestExtraction) Type() StepType {
return StepType(fmt.Sprintf("request-%v", s.step.Request.Method))
}
func (s *StepRequestExtraction) ToStruct() *TStep {
func (s *StepRequestExtraction) Struct() *TStep {
return s.step
}
@@ -761,7 +761,7 @@ func (s *StepRequestValidation) Type() StepType {
return StepType(fmt.Sprintf("request-%v", s.step.Request.Method))
}
func (s *StepRequestValidation) ToStruct() *TStep {
func (s *StepRequestValidation) Struct() *TStep {
return s.step
}