diff options
author | bep <bjorn.erik.pedersen@gmail.com> | 2015-01-27 11:44:41 +0100 |
---|---|---|
committer | bep <bjorn.erik.pedersen@gmail.com> | 2015-01-27 11:44:41 +0100 |
commit | bedc2d848803bfcc88de876f1a2d848ff8c57303 (patch) | |
tree | 257ebe61ca382043dac89f3ddb42dca279fce3f7 /helpers/path_test.go | |
parent | 5f9596e68c55830d046de3faa88ab0a8f68fcf76 (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.go | 2 |
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) } |