diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-01-16 13:50:32 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-01-16 17:12:56 +0100 |
commit | 6f07bdb152f6a7ec0979636011965a6c5dddf78d (patch) | |
tree | 3dad21af892a4f46c2869184db4e453f9b5ef2f5 /common/paths/path_test.go | |
parent | 55a9bc1e70c2c0e321807a446e0d37dcf3cbcc8d (diff) | |
download | hugo-6f07bdb152f6a7ec0979636011965a6c5dddf78d.tar.gz hugo-6f07bdb152f6a7ec0979636011965a6c5dddf78d.zip |
common/paths: Remove unused code
Diffstat (limited to 'common/paths/path_test.go')
-rw-r--r-- | common/paths/path_test.go | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/common/paths/path_test.go b/common/paths/path_test.go index e55493c7d..d1917a359 100644 --- a/common/paths/path_test.go +++ b/common/paths/path_test.go @@ -226,27 +226,3 @@ func TestFileAndExt(t *testing.T) { } } } - -func TestFindCWD(t *testing.T) { - type test struct { - expectedDir string - expectedErr error - } - - // cwd, _ := os.Getwd() - data := []test{ - //{cwd, nil}, - // Commenting this out. It doesn't work properly. - // There's a good reason why we don't use os.Getwd(), it doesn't actually work the way we want it to. - // I really don't know a better way to test this function. - SPF 2014.11.04 - } - for i, d := range data { - dir, err := FindCWD() - if d.expectedDir != dir { - t.Errorf("Test %d failed. Expected %q but got %q", i, d.expectedDir, dir) - } - if d.expectedErr != err { - t.Errorf("Test %d failed. Expected %q but got %q", i, d.expectedErr, err) - } - } -} |