Skip to content

Commit

Permalink
Updating docs (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
bendbennett committed Jul 31, 2023
1 parent a8cab58 commit 48fabe2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ package config
type TestStepConfigFunc func(TestStepConfigRequest) string

// TestStepConfigRequest defines the request supplied to types
// implementing TestStepConfigFunc. StepNumber is used in the
// predefined helper functions:
// implementing TestStepConfigFunc. StepNumber is one-based
// and is used in the predefined helper functions:
//
// - [config.TestStepDirectory]
// - [config.TestStepFile].
Expand Down
3 changes: 2 additions & 1 deletion config/directory.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ func TestNameDirectory() func(TestStepConfigRequest) string {
// }
//
// The testing configurations will be expected in the
// testdata/TestExampleCloudThing_basic/1 directory.
// testdata/TestExampleCloudThing_basic/1 directory as
// TestStepConfigRequest.StepNumber is one-based.
func TestStepDirectory() func(TestStepConfigRequest) string { //nolint:paralleltest //Not a test
return func(req TestStepConfigRequest) string {
return filepath.Join("testdata", req.TestName, strconv.Itoa(req.StepNumber))
Expand Down
3 changes: 2 additions & 1 deletion config/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ func TestNameFile(file string) func(TestStepConfigRequest) string {
// }
//
// The testing configuration will be expected in the
// testdata/TestExampleCloudThing_basic/1/test.tf file.
// testdata/TestExampleCloudThing_basic/1/test.tf file
// as TestStepConfigRequest.StepNumber is one-based.
func TestStepFile(file string) func(TestStepConfigRequest) string { //nolint:paralleltest //Not a test
return func(req TestStepConfigRequest) string {
return filepath.Join("testdata", req.TestName, strconv.Itoa(req.StepNumber), file)
Expand Down

0 comments on commit 48fabe2

Please sign in to comment.