Skip to content

Commit 3cd2f74

Browse files
committed
chore: Expanding linting to cover testing
1 parent 0b1f2b1 commit 3cd2f74

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ lint:
1010
golangci-lint run ./...
1111

1212
lint-allow-list:
13-
golangci-lint run ./modules/random/...
13+
golangci-lint run ./modules/random/... ./modules/testing/...
1414

1515
.PHONY: lint update-lint-config

modules/testing/types.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1+
// Package testing provides the TestingT interface used throughout Terratest.
12
package testing
23

34
// TestingT is an interface that describes the implementation of the testing object
45
// that the majority of Terratest functions accept as first argument.
56
// Using an interface that describes testing.T instead of the actual implementation
67
// makes terratest usable in a wider variety of contexts (e.g. use with ginkgo : https://godoc.org/github.com/onsi/ginkgo#GinkgoT)
78
type TestingT interface {
8-
//Fail marks the function as having failed but continues execution.
9+
// Fail marks the function as having failed but continues execution.
910
Fail()
1011
// FailNow marks the function as having failed and stops its execution
1112
// by calling runtime.Goexit (which then runs all deferred calls in the

0 commit comments

Comments
 (0)