Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestGetRequestAuthType (0.26 sec)

  1. cmd/auth-handler_test.go

    	"github.com/minio/pkg/v2/policy"
    )
    
    type nullReader struct{}
    
    func (r *nullReader) Read(b []byte) (int, error) {
    	return len(b), nil
    }
    
    // Test get request auth type.
    func TestGetRequestAuthType(t *testing.T) {
    	type testCase struct {
    		req   *http.Request
    		authT authType
    	}
    	nopCloser := io.NopCloser(io.LimitReader(&nullReader{}, 1024))
    	testCases := []testCase{
    		// Test case - 1
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 15.4K bytes
    - Viewed (0)
Back to top