mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-29 22:29:56 +02:00
@@ -35,7 +35,6 @@ import (
|
||||
|
||||
// New returns a new instance of the data-namespaced template functions.
|
||||
func New(deps *deps.Deps) *Namespace {
|
||||
|
||||
return &Namespace{
|
||||
deps: deps,
|
||||
cacheGetCSV: deps.FileCaches.GetCSVCache(),
|
||||
|
@@ -109,7 +109,7 @@ func TestGetCSV(t *testing.T) {
|
||||
|
||||
if _, ok := test.expect.(bool); ok {
|
||||
c.Assert(int(ns.deps.Log.LogCounters().ErrorCounter.Count()), qt.Equals, 1)
|
||||
//c.Assert(err, msg, qt.Not(qt.IsNil))
|
||||
// c.Assert(err, msg, qt.Not(qt.IsNil))
|
||||
c.Assert(got, qt.IsNil)
|
||||
continue
|
||||
}
|
||||
@@ -199,7 +199,7 @@ func TestGetJSON(t *testing.T) {
|
||||
|
||||
if _, ok := test.expect.(bool); ok {
|
||||
c.Assert(int(ns.deps.Log.LogCounters().ErrorCounter.Count()), qt.Equals, 1)
|
||||
//c.Assert(err, msg, qt.Not(qt.IsNil))
|
||||
// c.Assert(err, msg, qt.Not(qt.IsNil))
|
||||
continue
|
||||
}
|
||||
|
||||
|
@@ -81,7 +81,6 @@ func (ns *Namespace) getRemote(cache *filecache.Cache, unmarshal func([]byte) (b
|
||||
}
|
||||
|
||||
return nil, err
|
||||
|
||||
})
|
||||
|
||||
if !handled {
|
||||
@@ -100,7 +99,6 @@ func getLocal(url string, fs afero.Fs, cfg config.Provider) ([]byte, error) {
|
||||
}
|
||||
|
||||
return afero.ReadFile(fs, filename)
|
||||
|
||||
}
|
||||
|
||||
// getResource loads the content of a local or remote file and returns its content and the
|
||||
|
@@ -69,7 +69,6 @@ func TestScpGetLocal(t *testing.T) {
|
||||
t.Errorf("\nExpected: %s\nActual: %s\n", string(test.content), string(c))
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
func getTestServer(handler func(w http.ResponseWriter, r *http.Request)) (*httptest.Server, *http.Client) {
|
||||
|
Reference in New Issue
Block a user