aboutsummaryrefslogtreecommitdiffstats
path: root/repository/gogit_testing.go
diff options
context:
space:
mode:
authorSteve Moyer <smoyer1@selesy.com>2022-06-21 06:48:28 -0400
committerSteve Moyer <smoyer1@selesy.com>2022-06-21 06:48:28 -0400
commit52c724a03334dda9df30dbac22cb22a04cbe4260 (patch)
tree5320d6076a015d7e64d3d601922ca7f1559173e5 /repository/gogit_testing.go
parentf3d316d16cc9fadd90faaaf77becbb82f1e09367 (diff)
downloadgit-bug-52c724a03334dda9df30dbac22cb22a04cbe4260.tar.gz
test: use testing.TB as common interface
Diffstat (limited to 'repository/gogit_testing.go')
-rw-r--r--repository/gogit_testing.go8
1 files changed, 1 insertions, 7 deletions
diff --git a/repository/gogit_testing.go b/repository/gogit_testing.go
index 01be54de..3e6f72fc 100644
--- a/repository/gogit_testing.go
+++ b/repository/gogit_testing.go
@@ -9,17 +9,11 @@ import (
"github.com/99designs/keyring"
)
-type TestingT interface {
- Cleanup(func())
- Helper()
- TempDir() string
-}
-
const namespace = "git-bug"
// This is intended for testing only
-func CreateGoGitTestRepo(t TestingT, bare bool) TestedRepo {
+func CreateGoGitTestRepo(t testing.TB, bare bool) TestedRepo {
t.Helper()
dir := t.TempDir()