Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for Cortez (0.14 sec)

  1. cmd/signature-v2_test.go

    	sort.Strings(sortedResourceList)
    	for i := 0; i < len(resourceList); i++ {
    		if resourceList[i] != sortedResourceList[i] {
    			t.Errorf("Expected resourceList[%d] = \"%s\", resourceList is not correctly sorted.", i, sortedResourceList[i])
    			break
    		}
    	}
    }
    
    // Tests presigned v2 signature.
    func TestDoesPresignedV2SignatureMatch(t *testing.T) {
    	ctx, cancel := context.WithCancel(context.Background())
    	defer cancel()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Oct 14 10:08:40 GMT 2022
    - 8K bytes
    - Viewed (0)
  2. cmd/os-readdir_test.go

    			testResults = append(testResults, result{dir, entries})
    			t.Fatalf("Unable to create file, %s", err)
    		}
    		entries = append(entries, name)
    	}
    
    	// Keep entries sorted for easier comparison.
    	sort.Strings(entries)
    
    	// Add entries slice for this test directory.
    	testResults = append(testResults, result{dir, entries})
    	return testResults
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 19 18:05:16 GMT 2022
    - 7.5K bytes
    - Viewed (0)
  3. internal/store/queuestore.go

    	sort.Slice(l, func(i, j int) bool {
    		return store.entries[l[i]] < store.entries[l[j]]
    	})
    	store.RUnlock()
    
    	return l, nil
    }
    
    // list will read all entries from disk.
    // Entries are returned sorted by modtime, oldest first.
    // Underlying entry list in store is *not* updated.
    func (store *QueueStore[_]) list() ([]os.DirEntry, error) {
    	files, err := os.ReadDir(store.directory)
    	if err != nil {
    		return nil, err
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 25 16:44:20 GMT 2024
    - 7.1K bytes
    - Viewed (0)
Back to top