Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Read (0.2 sec)

  1. cmd/auth-handler_test.go

    	"context"
    	"io"
    	"net/http"
    	"net/url"
    	"os"
    	"testing"
    	"time"
    
    	"github.com/minio/minio/internal/auth"
    	"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
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 15.4K bytes
    - Viewed (0)
Back to top