(t *testing.T)
| 152 | } |
| 153 | |
| 154 | func TestSortEntriesNoSort(t *testing.T) { |
| 155 | entries := []files.IsMetadata{ |
| 156 | &files.FolderMetadata{Metadata: files.Metadata{PathDisplay: "/z"}}, |
| 157 | &files.FolderMetadata{Metadata: files.Metadata{PathDisplay: "/a"}}, |
| 158 | } |
| 159 | |
| 160 | sortEntries(entries, listOptions{}) |
| 161 | |
| 162 | if entryPath(entries[0]) != "/z" || entryPath(entries[1]) != "/a" { |
| 163 | t.Error("with no sort, order should be preserved") |
| 164 | } |
| 165 | } |
| 166 | |
| 167 | func TestFormatFileMetadataWithOptsShort(t *testing.T) { |
| 168 | ts := time.Date(2025, 3, 15, 10, 30, 0, 0, time.UTC) |
nothing calls this directly
no test coverage detected