MCPcopy Create free account
hub / github.com/dropbox/dbxcli / TestFormatFileMetadataWithOptsShort

Function TestFormatFileMetadataWithOptsShort

cmd/format_test.go:167–181  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

165}
166
167func 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
183func TestFormatFileMetadataWithOptsLongShortTime(t *testing.T) {
184 ts := time.Date(2025, 3, 15, 10, 30, 0, 0, time.UTC)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected