summaryrefslogtreecommitdiff
path: root/integrationtests/cli_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-23 20:29:29 +0300
committerPaul Buetow <paul@buetow.org>2026-05-23 20:29:29 +0300
commitb379e39ce81a995812895f4aa4fe079372f76ba0 (patch)
tree09b2ebd9a1b8ba3fc7d41ce1c37d38fbaba52c38 /integrationtests/cli_test.go
parentf075b188fde9e201f3825b16ce9f562282854a49 (diff)
style: run gofmt on all Go source files
Fix formatting in 12 files to match gofmt standards. No logical changes.
Diffstat (limited to 'integrationtests/cli_test.go')
-rw-r--r--integrationtests/cli_test.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/integrationtests/cli_test.go b/integrationtests/cli_test.go
index deded52..5567ad1 100644
--- a/integrationtests/cli_test.go
+++ b/integrationtests/cli_test.go
@@ -13,7 +13,7 @@ import (
// buildBinary builds the gt binary to a temporary location.
func buildBinary(t *testing.T) string {
t.Helper()
-
+
// Get the project root directory
projectRoot := os.Getenv("GITHUB_WORKSPACE")
if projectRoot == "" {
@@ -25,19 +25,19 @@ func buildBinary(t *testing.T) string {
if err := buildCmd.Run(); err != nil {
t.Fatalf("build failed: %v", err)
}
-
+
t.Cleanup(func() {
// Explicitly ignore error return from os.Remove during cleanup
_ = os.Remove("/tmp/gt-test")
})
-
+
return "/tmp/gt-test"
}
// TestCLIVersion tests that the version command works correctly.
func TestCLIVersion(t *testing.T) {
binaryPath := buildBinary(t)
-
+
cmd := exec.Command(binaryPath, "version")
output, err := cmd.CombinedOutput()
if err != nil {
@@ -53,7 +53,7 @@ func TestCLIVersion(t *testing.T) {
// TestCLIVersionOnly tests that the version command works correctly.
func TestCLIVersionOnly(t *testing.T) {
binaryPath := buildBinary(t)
-
+
cmd := exec.Command(binaryPath, "version")
output, err := cmd.CombinedOutput()
if err != nil {