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

Function TestSortEntriesNoSort

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

Source from the content-addressed store, hash-verified

152}
153
154func 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
167func TestFormatFileMetadataWithOptsShort(t *testing.T) {
168 ts := time.Date(2025, 3, 15, 10, 30, 0, 0, time.UTC)

Callers

nothing calls this directly

Calls 3

sortEntriesFunction · 0.85
entryPathFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected