From 2a3315097c7db11f56e2809386f37191b4159f81 Mon Sep 17 00:00:00 2001 From: Corey Johnson Date: Mon, 14 Oct 2019 11:25:59 -0700 Subject: [PATCH] rename to helpers --- command/pr_test.go | 2 +- test/{util.go => helpers.go} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename test/{util.go => helpers.go} (98%) diff --git a/command/pr_test.go b/command/pr_test.go index e1fcf4106..c9ed01825 100644 --- a/command/pr_test.go +++ b/command/pr_test.go @@ -11,7 +11,7 @@ func TestPRList(t *testing.T) { teardown := test.MockGraphQLResponse("pr.json") defer teardown() - gitRepo := test.SetupTempGitRepo() + gitRepo := test.UseTempGitRepo() defer gitRepo.TearDown() output, err := test.RunCommand(RootCmd, "pr list") diff --git a/test/util.go b/test/helpers.go similarity index 98% rename from test/util.go rename to test/helpers.go index 4931c1612..a92ebb3b3 100644 --- a/test/util.go +++ b/test/helpers.go @@ -19,7 +19,7 @@ type TempGitRepo struct { TearDown func() } -func SetupTempGitRepo() *TempGitRepo { +func UseTempGitRepo() *TempGitRepo { github.CreateTestConfigs("mario", "i-love-peach") pwd, _ := os.Getwd()