Skip to content

Commit

Permalink
Remove unused test func
Browse files Browse the repository at this point in the history
  • Loading branch information
tpdownes committed Jun 20, 2023
1 parent 1df86bf commit c903f30
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions pkg/modulereader/resreader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import (
"reflect"
"testing"

"github.com/spf13/afero"
. "gopkg.in/check.v1"
"gopkg.in/yaml.v3"
)
Expand Down Expand Up @@ -152,15 +151,6 @@ func (s *MySuite) TestGetModuleInfo_Local(c *C) {
c.Assert(err, ErrorMatches, expectedErr)
}

// hcl_utils.go
func getTestFS() afero.IOFS {
aferoFS := afero.NewMemMapFs()
aferoFS.MkdirAll("modules/network/vpc", 0755)
afero.WriteFile(
aferoFS, "modules/network/vpc/main.tf", []byte(testMainTf), 0644)
return afero.NewIOFS(aferoFS)
}

func (s *MySuite) TestGetHCLInfo(c *C) {
// Invalid source path - path does not exists
fakePath := "./not/a/real/path"
Expand Down

0 comments on commit c903f30

Please sign in to comment.