diff options
author | Bjørn Erik Pedersen <[email protected]> | 2018-12-21 16:21:13 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2018-12-23 10:02:42 +0100 |
commit | 822dc627a1cfdf1f97882f27761675ac6ace7669 (patch) | |
tree | b453158c329495fa59dc38374eb8296995ba0ce0 /helpers/general_test.go | |
parent | 43f9df0194d229805d80b13c9e38a7a0fec12cf4 (diff) | |
download | hugo-822dc627a1cfdf1f97882f27761675ac6ace7669.tar.gz hugo-822dc627a1cfdf1f97882f27761675ac6ace7669.zip |
tpl/transform: Add transform.Unmarshal func
Fixes #5428
Diffstat (limited to 'helpers/general_test.go')
-rw-r--r-- | helpers/general_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/helpers/general_test.go b/helpers/general_test.go index 08fe4890e..1279df439 100644 --- a/helpers/general_test.go +++ b/helpers/general_test.go @@ -272,7 +272,7 @@ func TestFastMD5FromFile(t *testing.T) { req.NoError(err) req.NotEqual(m3, m4) - m5, err := MD5FromFile(bf2) + m5, err := MD5FromReader(bf2) req.NoError(err) req.NotEqual(m4, m5) } @@ -293,7 +293,7 @@ func BenchmarkMD5FromFileFast(b *testing.B) { } b.StartTimer() if full { - if _, err := MD5FromFile(f); err != nil { + if _, err := MD5FromReader(f); err != nil { b.Fatal(err) } } else { |