Skip to content

Commit 485bc31

Browse files
gcmurphyjonmcclintock
authored andcommitted
Fix go vet errors in tests
1 parent f7c31f2 commit 485bc31

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

analyzer_test.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package gas_test
22

33
import (
4-
"bytes"
54
"io/ioutil"
65
"log"
76
"os"
@@ -20,10 +19,9 @@ var _ = Describe("Analyzer", func() {
2019
var (
2120
analyzer *gas.Analyzer
2221
logger *log.Logger
23-
output *bytes.Buffer
2422
)
2523
BeforeEach(func() {
26-
logger, output = testutils.NewLogger()
24+
logger, _ = testutils.NewLogger()
2725
analyzer = gas.NewAnalyzer(nil, logger)
2826
})
2927

import_tracker_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package gas_test
22

33
import (
44
. "github.com/onsi/ginkgo"
5-
//. "github.com/onsi/gomega"
5+
. "github.com/onsi/gomega"
66
)
77

88
var _ = Describe("ImportTracker", func() {
@@ -15,6 +15,7 @@ var _ = Describe("ImportTracker", func() {
1515
})
1616
Context("when I have a valid go package", func() {
1717
It("should record all import specs", func() {
18+
Expect(source).To(Equal(source))
1819
Skip("Not implemented")
1920
})
2021

rules/rules_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,13 @@ var _ = Describe("gas rules", func() {
1717

1818
var (
1919
logger *log.Logger
20-
output *bytes.Buffer
2120
config gas.Config
2221
analyzer *gas.Analyzer
2322
runner func(string, []testutils.CodeSample)
2423
)
2524

2625
BeforeEach(func() {
27-
logger, output = testutils.NewLogger()
26+
logger, _ = testutils.NewLogger()
2827
config = gas.NewConfig()
2928
analyzer = gas.NewAnalyzer(config, logger)
3029
runner = func(rule string, samples []testutils.CodeSample) {

0 commit comments

Comments
 (0)