2023-03-28 23:48:58 +01:00
|
|
|
// Copyright (c) HashiCorp, Inc.
|
|
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
2020-09-10 14:04:56 +01:00
|
|
|
package testutil
|
|
|
|
|
|
|
|
// TestingTB is an interface that describes the implementation of the testing object.
|
|
|
|
// Using an interface that describes testing.TB instead of the actual implementation
|
|
|
|
// makes testutil usable in a wider variety of contexts (e.g. use with ginkgo : https://godoc.org/github.com/onsi/ginkgo#GinkgoT)
|
|
|
|
type TestingTB interface {
|
|
|
|
Cleanup(func())
|
|
|
|
Failed() bool
|
|
|
|
Logf(format string, args ...interface{})
|
|
|
|
Name() string
|
2021-11-27 15:53:51 -05:00
|
|
|
Fatalf(fmt string, args ...interface{})
|
2022-08-08 13:59:35 -04:00
|
|
|
Helper()
|
2020-09-10 14:04:56 +01:00
|
|
|
}
|