Search Options

Results per page
Sort
Preferred Languages
Advance

Results 781 - 790 of 1,179 for FUNC (0.04 sec)

  1. internal/store/store_test.go

    //
    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package store
    
    import (
    	"testing"
    )
    
    func TestKeyString(t *testing.T) {
    	testCases := []struct {
    		key            Key
    		expectedString string
    	}{
    		{
    			key: Key{
    				Name:      "01894394-d046-4783-ba0d-f1c6885790dc",
    				Extension: ".event",
    			},
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 4K bytes
    - Viewed (0)
  2. cmd/api-response_test.go

    		testCase := testCase
    		t.Run("", func(t *testing.T) {
    			gotLocation := getObjectLocation(testCase.request, testCase.domains, testCase.bucket, testCase.object)
    			if testCase.expectedLocation != gotLocation {
    				t.Errorf("expected %s, got %s", testCase.expectedLocation, gotLocation)
    			}
    		})
    	}
    }
    
    // Tests getURLScheme function behavior.
    func TestGetURLScheme(t *testing.T) {
    	tls := false
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Apr 23 18:58:53 UTC 2021
    - 3.5K bytes
    - Viewed (0)
  3. cmd/server-main_test.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"context"
    	"reflect"
    	"testing"
    )
    
    func TestServerConfigFile(t *testing.T) {
    	for _, testcase := range []struct {
    		config      string
    		expectedErr bool
    		hash        string
    	}{
    		{
    			config:      "testdata/config/1.yaml",
    			expectedErr: false,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Dec 07 09:33:56 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  4. internal/s3select/parquet/reader.go

    	r *parquetgo.FileReader
    }
    
    // NewParquetReader creates a Reader2 from a io.ReadSeekCloser.
    func NewParquetReader(rsc io.ReadSeekCloser, _ *ReaderArgs) (r *Reader, err error) {
    	fr, err := parquetgo.NewFileReader(rsc)
    	if err != nil {
    		return nil, errParquetParsingError(err)
    	}
    
    	return &Reader{Closer: rsc, r: fr}, nil
    }
    
    func (pr *Reader) Read(dst sql.Record) (rec sql.Record, rerr error) {
    	nextRow, err := pr.r.NextRow()
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  5. internal/event/target/kafka_scram_client_contrib.go

    	"strings"
    
    	"github.com/IBM/sarama"
    	"github.com/xdg/scram"
    
    	"github.com/minio/minio/internal/hash/sha256"
    )
    
    func initScramClient(args KafkaArgs, config *sarama.Config) {
    	switch strings.ToLower(args.SASL.Mechanism) {
    	case "sha512":
    		config.Net.SASL.SCRAMClientGeneratorFunc = func() sarama.SCRAMClient { return &XDGSCRAMClient{HashGeneratorFcn: KafkaSHA512} }
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Nov 09 04:04:01 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  6. misc/cgo/gmp/fib.go

    // that pass integers back and forth.  No actual
    // concurrency, just threads and synchronization
    // and foreign code on multiple pthreads.
    
    package main
    
    import (
    	big "."
    	"runtime"
    )
    
    func fibber(c chan *big.Int, out chan string, n int64) {
    	// Keep the fibbers in dedicated operating system
    	// threads, so that this program tests coordination
    	// between pthreads and not just goroutines.
    	runtime.LockOSThread()
    
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Apr 10 22:32:35 UTC 2023
    - 919 bytes
    - Viewed (0)
  7. cmd/postpolicyform_test.go

    package cmd
    
    import (
    	"bytes"
    	"encoding/base64"
    	"fmt"
    	"net/http"
    	"strings"
    	"testing"
    
    	minio "github.com/minio/minio-go/v7"
    )
    
    func TestParsePostPolicyForm(t *testing.T) {
    	testCases := []struct {
    		policy  string
    		success bool
    	}{
    		// missing expiration, will fail.
    		{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Apr 23 18:58:53 UTC 2021
    - 8.9K bytes
    - Viewed (0)
  8. cmd/shared-lock.go

    				break keepLock
    			case ld.lockContext <- lkctx:
    				// Send the lock context to anyone asking for it
    			}
    		}
    	}
    }
    
    func mergeContext(ctx1, ctx2 context.Context) (context.Context, context.CancelFunc) {
    	ctx, cancel := context.WithCancel(context.Background())
    	go func() {
    		select {
    		case <-ctx1.Done():
    		case <-ctx2.Done():
    		// The lock acquirer decides to cancel, exit this goroutine
    		case <-ctx.Done():
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Feb 13 09:26:38 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  9. cmd/bucket-replication-utils_gen.go

    }
    
    // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
    func (z MRFReplicateEntry) Msgsize() (s int) {
    	s = 1 + 2 + msgp.StringPrefixSize + len(z.Bucket) + 2 + msgp.StringPrefixSize + len(z.Object) + 3 + msgp.IntSize
    	return
    }
    
    // DecodeMsg implements msgp.Decodable
    func (z *ReplicateDecision) DecodeMsg(dc *msgp.Reader) (err error) {
    	var field []byte
    	_ = field
    	var zb0001 uint32
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Mar 21 17:21:35 UTC 2024
    - 61.1K bytes
    - Viewed (0)
  10. src/archive/tar/reader.go

    	default:
    		return n, err
    	}
    }
    
    func (fr *regFileReader) WriteTo(w io.Writer) (int64, error) {
    	return io.Copy(w, struct{ io.Reader }{fr})
    }
    
    // logicalRemaining implements fileState.logicalRemaining.
    func (fr regFileReader) logicalRemaining() int64 {
    	return fr.nb
    }
    
    // physicalRemaining implements fileState.physicalRemaining.
    func (fr regFileReader) physicalRemaining() int64 {
    	return fr.nb
    }
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Mar 08 01:59:14 UTC 2024
    - 26.8K bytes
    - Viewed (0)
Back to top