summaryrefslogtreecommitdiffstats
path: root/stdout
diff options
context:
space:
mode:
authorDaniel Milde <daniel@milde.cz>2024-04-24 10:17:23 +0200
committerDaniel Milde <daniel@milde.cz>2024-04-24 12:54:24 +0200
commit2558cf7fc7b50a534cc559c48f947ff8b9367943 (patch)
tree0b409212761a7f57b4e787bc57d1bc9c73d34dee /stdout
parentd167352f1fa9c16e7f1c0b80d9954410cb0311af (diff)
refactor: gofumpted
Diffstat (limited to 'stdout')
-rw-r--r--stdout/stdout_test.go8
1 files changed, 4 insertions, 4 deletions
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))