(t *testing.T)
| 165 | } |
| 166 | |
| 167 | func TestFormatFileMetadataWithOptsShort(t *testing.T) { |
| 168 | ts := time.Date(2025, 3, 15, 10, 30, 0, 0, time.UTC) |
| 169 | meta := &files.FileMetadata{ |
| 170 | Metadata: files.Metadata{PathDisplay: "/test.txt"}, |
| 171 | Rev: "abc", |
| 172 | Size: 4096, |
| 173 | ServerModified: dropbox.DBXTime(ts), |
| 174 | } |
| 175 | |
| 176 | got := formatFileMetadataWithOpts(meta, listOptions{long: false}) |
| 177 | want := "/test.txt\t" |
| 178 | if got != want { |
| 179 | t.Errorf("short format = %q, want %q", got, want) |
| 180 | } |
| 181 | } |
| 182 | |
| 183 | func TestFormatFileMetadataWithOptsLongShortTime(t *testing.T) { |
| 184 | ts := time.Date(2025, 3, 15, 10, 30, 0, 0, time.UTC) |
nothing calls this directly
no test coverage detected