change: use NewStep to construct a new test step

This commit is contained in:
debugtalk
2021-12-07 11:11:03 +08:00
parent 5de87ac875
commit b8573c2ea9
11 changed files with 47 additions and 42 deletions

View File

@@ -2,7 +2,8 @@ package hrp
import "fmt"
func Step(name string) *step {
// NewStep returns a new constructed teststep with specified step name.
func NewStep(name string) *step {
return &step{
TStep: &TStep{
Name: name,