From 2558cf7fc7b50a534cc559c48f947ff8b9367943 Mon Sep 17 00:00:00 2001 From: Daniel Milde Date: Wed, 24 Apr 2024 10:17:23 +0200 Subject: refactor: gofumpted --- stdout/stdout_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'stdout') diff --git a/stdout/stdout_test.go b/stdout/stdout_test.go index 2146367..240ed13 100644 --- a/stdout/stdout_test.go +++ b/stdout/stdout_test.go @@ -149,7 +149,7 @@ func TestShowDevicesWithColor(t *testing.T) { } func TestReadAnalysisWithColor(t *testing.T) { - input, err := os.OpenFile("../internal/testdata/test.json", os.O_RDONLY, 0644) + input, err := os.OpenFile("../internal/testdata/test.json", os.O_RDONLY, 0o644) assert.Nil(t, err) output := bytes.NewBuffer(make([]byte, 10)) @@ -162,7 +162,7 @@ func TestReadAnalysisWithColor(t *testing.T) { } func TestReadAnalysisBw(t *testing.T) { - input, err := os.OpenFile("../internal/testdata/test.json", os.O_RDONLY, 0644) + input, err := os.OpenFile("../internal/testdata/test.json", os.O_RDONLY, 0o644) assert.Nil(t, err) output := bytes.NewBuffer(make([]byte, 10)) @@ -175,7 +175,7 @@ func TestReadAnalysisBw(t *testing.T) { } func TestReadAnalysisWithWrongFile(t *testing.T) { - input, err := os.OpenFile("../internal/testdata/wrong.json", os.O_RDONLY, 0644) + input, err := os.OpenFile("../internal/testdata/wrong.json", os.O_RDONLY, 0o644) assert.Nil(t, err) output := bytes.NewBuffer(make([]byte, 10)) @@ -187,7 +187,7 @@ func TestReadAnalysisWithWrongFile(t *testing.T) { } func TestReadAnalysisWithSummarize(t *testing.T) { - input, err := os.OpenFile("../internal/testdata/test.json", os.O_RDONLY, 0644) + input, err := os.OpenFile("../internal/testdata/test.json", os.O_RDONLY, 0o644) assert.Nil(t, err) output := bytes.NewBuffer(make([]byte, 10)) -- cgit v1.2.3