hugolib: Improve errors in /data handlling

See #5324
This commit is contained in:
Bjørn Erik Pedersen
2018-10-22 16:47:23 +02:00
parent d1661b823a
commit 9f74dc2a52
3 changed files with 26 additions and 5 deletions

View File

@@ -50,6 +50,7 @@ func TestRootMappingFsDirnames(t *testing.T) {
fif, err := rfs.Stat(filepath.Join("cf2", testfile))
assert.NoError(err)
assert.Equal("myfile.txt", fif.Name())
assert.Equal("f2t/myfile.txt", fif.(RealFilenameInfo).RealFilename())
root, err := rfs.Open(filepathSeparator)
assert.NoError(err)