Add new format to parse test

This commit is contained in:
us3r64 2017-05-31 16:55:26 +03:00
parent 5c7b901224
commit 4cf1e9e2cb

View File

@ -56,6 +56,10 @@ var listTests = []line{
{"drwxr-xr-x 3 110 1002 3 Dec 02 2009 spaces dir name", "spaces dir name", 0, EntryTypeFolder, time.Date(2009, time.December, 2, 0, 0, 0, 0, time.UTC)},
{"-rwxr-xr-x 3 110 1002 1234567 Dec 02 2009 file name", "file name", 1234567, EntryTypeFile, time.Date(2009, time.December, 2, 0, 0, 0, 0, time.UTC)},
{"-rwxr-xr-x 3 110 1002 1234567 Dec 02 2009 foo bar ", " foo bar ", 1234567, EntryTypeFile, time.Date(2009, time.December, 2, 0, 0, 0, 0, time.UTC)},
// UNIX ls -l style 8 tokens
{"drwxr-xr-x 3 vuser 4096 May 12 2011 web site", "web site", 0, EntryTypeFolder, time.Date(2011, time.May, 12, 0, 0, 0, 0, time.UTC)},
{"-rw-r--r-- 1 vuser 70962 Apr 11 2007 C_080601.jpg", "C_080601.jpg", 70962, EntryTypeFile, time.Date(2007, time.April, 11, 0, 0, 0, 0, time.UTC)},
}
// Not supported, we expect a specific error message