From e2aea65170985d7428c468ce0591557ad95af884 Mon Sep 17 00:00:00 2001 From: Cameron Moore Date: Sat, 7 May 2016 16:34:53 -0500 Subject: helpers: Remove ToReader funcs Remove StringToReader and BytesToReader in favor of using the stdlib directly. --- transform/chain_test.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'transform/chain_test.go') diff --git a/transform/chain_test.go b/transform/chain_test.go index a0ae358d6..5200baa18 100644 --- a/transform/chain_test.go +++ b/transform/chain_test.go @@ -15,11 +15,12 @@ package transform import ( "bytes" - "github.com/spf13/hugo/helpers" - "github.com/stretchr/testify/assert" "path/filepath" "strings" "testing" + + "github.com/spf13/hugo/helpers" + "github.com/stretchr/testify/assert" ) const ( @@ -148,7 +149,7 @@ func TestChaingMultipleTransformers(t *testing.T) { tr := NewChain(f1, f2, f3, f4) out := new(bytes.Buffer) - if err := tr.Apply(out, helpers.StringToReader("Test: f4 f3 f1 f2 f1 The End."), []byte("")); err != nil { + if err := tr.Apply(out, strings.NewReader("Test: f4 f3 f1 f2 f1 The End."), []byte("")); err != nil { t.Errorf("Multi transformer chain returned an error: %s", err) } -- cgit v1.2.3