Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for sortByModTime (0.09 sec)

  1. cmd/metacache-entries_test.go

    					Signature: [4]byte{2, 1, 1, 1},
    					Type:      ObjectType,
    					Flags:     0,
    				}},
    			},
    		},
    	}
    	inputSerialized := make([]metaCacheEntry, len(inputs))
    	for i, xl := range inputs {
    		xl.sortByModTime()
    		var err error
    		entry := metaCacheEntry{
    			name: "testobject",
    		}
    		entry.metadata, err = xl.AppendTo(nil)
    		if err != nil {
    			t.Fatal(err)
    		}
    		inputSerialized[i] = entry
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Jan 02 17:15:06 UTC 2022
    - 31.6K bytes
    - Viewed (0)
  2. cmd/xl-storage-format-v2_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    	test := func(t *testing.T, xl *xlMetaV2) {
    		if len(xl.versions) != 855 {
    			t.Errorf("want %d versions, got %d", 855, len(xl.versions))
    		}
    		xl.sortByModTime()
    		if !sort.SliceIsSorted(xl.versions, func(i, j int) bool {
    			return xl.versions[i].header.ModTime > xl.versions[j].header.ModTime
    		}) {
    			t.Errorf("Contents not sorted")
    		}
    		for i := range xl.versions {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Mar 08 17:50:48 UTC 2024
    - 36.4K bytes
    - Viewed (0)
Back to top