diff options
author | bep <bjorn.erik.pedersen@gmail.com> | 2015-03-19 01:55:49 +0100 |
---|---|---|
committer | bep <bjorn.erik.pedersen@gmail.com> | 2015-03-19 02:07:57 +0100 |
commit | 66cf3bdc77d43f92333cd48a351d59d7a5abe1f8 (patch) | |
tree | 395f711d96b4528e4da842ff4da8f92a245bfc94 /transform/chain_test.go | |
parent | efb564775afd319b953a386cf9e8cc1aca0b585e (diff) |
Rename interface contentRewriter to contentTransformer
Is is a much better name.
Diffstat (limited to 'transform/chain_test.go')
-rw-r--r-- | transform/chain_test.go | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/transform/chain_test.go b/transform/chain_test.go index c69b2eb82..683ac77c1 100644 --- a/transform/chain_test.go +++ b/transform/chain_test.go @@ -56,18 +56,18 @@ func TestChainZeroTransformers(t *testing.T) { } func TestChaingMultipleTransformers(t *testing.T) { - f1 := func(rw contentRewriter) { - rw.Write(bytes.Replace(rw.Content(), []byte("f1"), []byte("f1r"), -1)) + f1 := func(ct contentTransformer) { + ct.Write(bytes.Replace(ct.Content(), []byte("f1"), []byte("f1r"), -1)) } - f2 := func(rw contentRewriter) { - rw.Write(bytes.Replace(rw.Content(), []byte("f2"), []byte("f2r"), -1)) + f2 := func(ct contentTransformer) { + ct.Write(bytes.Replace(ct.Content(), []byte("f2"), []byte("f2r"), -1)) } - f3 := func(rw contentRewriter) { - rw.Write(bytes.Replace(rw.Content(), []byte("f3"), []byte("f3r"), -1)) + f3 := func(ct contentTransformer) { + ct.Write(bytes.Replace(ct.Content(), []byte("f3"), []byte("f3r"), -1)) } - f4 := func(rw contentRewriter) { - rw.Write(bytes.Replace(rw.Content(), []byte("f4"), []byte("f4r"), -1)) + f4 := func(ct contentTransformer) { + ct.Write(bytes.Replace(ct.Content(), []byte("f4"), []byte("f4r"), -1)) } tr := NewChain(f1, f2, f3, f4) |