summaryrefslogtreecommitdiffstats
path: root/helpers/path_test.go
diff options
context:
space:
mode:
authorbep <bjorn.erik.pedersen@gmail.com>2015-01-27 11:44:41 +0100
committerbep <bjorn.erik.pedersen@gmail.com>2015-01-27 11:44:41 +0100
commitbedc2d848803bfcc88de876f1a2d848ff8c57303 (patch)
tree257ebe61ca382043dac89f3ddb42dca279fce3f7 /helpers/path_test.go
parent5f9596e68c55830d046de3faa88ab0a8f68fcf76 (diff)
Introduce FilepathPathBridge
This commit introduces the new interface FilepathPathBridge to remove some code that differs only in their use of either the path or filepath package.
Diffstat (limited to 'helpers/path_test.go')
-rw-r--r--helpers/path_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/helpers/path_test.go b/helpers/path_test.go
index 0da8835a2..52f879174 100644
--- a/helpers/path_test.go
+++ b/helpers/path_test.go
@@ -461,7 +461,7 @@ func TestFileAndExt(t *testing.T) {
}
for i, d := range data {
- file, ext := FileAndExt(filepath.FromSlash(d.input))
+ file, ext := FileAndExt(filepath.FromSlash(d.input), filepathBridge)
if d.expectedFile != file {
t.Errorf("Test %d failed. Expected filename %q got %q.", i, d.expectedFile, file)
}