diff options
Diffstat (limited to 'tpl/tplimpl/template_funcs_test.go')
-rw-r--r-- | tpl/tplimpl/template_funcs_test.go | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/tpl/tplimpl/template_funcs_test.go b/tpl/tplimpl/template_funcs_test.go index 22387dc01..c21ef38a6 100644 --- a/tpl/tplimpl/template_funcs_test.go +++ b/tpl/tplimpl/template_funcs_test.go @@ -1,4 +1,4 @@ -// Copyright 2016 The Hugo Authors. All rights reserved. +// Copyright 2019 The Hugo Authors. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -220,21 +220,3 @@ func doBenchmarkPartial(b *testing.B, f func(ns *partials.Namespace) error) { } }) } - -func newTestFuncster() *templateFuncster { - return newTestFuncsterWithViper(viper.New()) -} - -func newTestFuncsterWithViper(v *viper.Viper) *templateFuncster { - config := newDepsConfig(v) - d, err := deps.New(config) - if err != nil { - panic(err) - } - - if err := d.LoadResources(); err != nil { - panic(err) - } - - return d.Tmpl.(*templateHandler).html.funcster -} |