summaryrefslogtreecommitdiffhomepage
path: root/transform
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2016-02-06 18:17:48 +0100
committerBjørn Erik Pedersen <[email protected]>2016-02-06 18:17:48 +0100
commit96e990456b65c7744819000f67f226c34d487d99 (patch)
treeefeec8ffc3f4fd2939431e10c359dc795365f244 /transform
parent21cb526462a1b3d18e15cbc36bc378fed07c33c4 (diff)
downloadhugo-96e990456b65c7744819000f67f226c34d487d99.tar.gz
hugo-96e990456b65c7744819000f67f226c34d487d99.zip
transform: Add missing test case for NewEmptyTransforms
Diffstat (limited to 'transform')
-rw-r--r--transform/chain_test.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/transform/chain_test.go b/transform/chain_test.go
index ae7ef2caa..8ac3b6bc1 100644
--- a/transform/chain_test.go
+++ b/transform/chain_test.go
@@ -16,6 +16,7 @@ package transform
import (
"bytes"
"github.com/spf13/hugo/helpers"
+ "github.com/stretchr/testify/assert"
"path/filepath"
"strings"
"testing"
@@ -211,6 +212,11 @@ func TestXMLAbsURL(t *testing.T) {
apply(t.Errorf, tr, xml_abs_url_tests)
}
+func TestNewEmptyTransforms(t *testing.T) {
+ transforms := NewEmptyTransforms()
+ assert.Equal(t, 20, cap(transforms))
+}
+
type errorf func(string, ...interface{})
func applyWithPath(ef errorf, tr chain, tests []test, path string) {