diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2015-08-26 21:29:32 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2015-08-26 21:29:32 +0200 |
commit | 5b90b388cb5042ee7ee729e70a55228004f0def6 (patch) | |
tree | 2c5ccbc96bb8f076cefdc14118c7b46f7261925a /helpers/path_test.go | |
parent | fd2fc1d3cef3f8085ccbb364918597b7f0e9623e (diff) |
Unexport FileAndExt
If needed outside helpers, create an exported file path (FilePathAndExt?) and/or a url version.
Diffstat (limited to 'helpers/path_test.go')
-rw-r--r-- | helpers/path_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helpers/path_test.go b/helpers/path_test.go index 5cf863b6c..85e4e0f10 100644 --- a/helpers/path_test.go +++ b/helpers/path_test.go @@ -540,7 +540,7 @@ func TestFileAndExt(t *testing.T) { } for i, d := range data { - file, ext := FileAndExt(filepath.FromSlash(d.input), fpb) + file, ext := fileAndExt(filepath.FromSlash(d.input), fpb) if d.expectedFile != file { t.Errorf("Test %d failed. Expected filename %q got %q.", i, d.expectedFile, file) } |