Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 45 of 45 for TC (0.18 sec)

  1. internal/bucket/object/lock/lock_test.go

    			value:        "complIAnce",
    			expectedMode: RetCompliance,
    		},
    		{
    			value:        "gce",
    			expectedMode: "",
    		},
    	}
    
    	for _, tc := range testCases {
    		if parseRetMode(tc.value) != tc.expectedMode {
    			t.Errorf("Expected Mode %s, got %s", tc.expectedMode, parseRetMode(tc.value))
    		}
    	}
    }
    
    func TestParseLegalHoldStatus(t *testing.T) {
    	tests := []struct {
    		value          string
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 17.1K bytes
    - Viewed (0)
  2. internal/dsync/drwmutex.go

    	// Also, pass the trace context info if found for debugging
    	netLockCtx := context.Background()
    	tc, ok := ctx.Value(mcontext.ContextTraceKey).(*mcontext.TraceCtxt)
    	if ok {
    		netLockCtx = context.WithValue(netLockCtx, mcontext.ContextTraceKey, tc)
    	}
    
    	for index, c := range restClnts {
    		wg.Add(1)
    		// broadcast lock request to all nodes
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 19.7K bytes
    - Viewed (0)
  3. istioctl/pkg/describe/describe_test.go

    				Protocol: corev1.ProtocolUDP,
    				Port:     80,
    			},
    			expectedProtocol: "UDP",
    		},
    	}
    
    	for _, tc := range cases {
    		protocol := findProtocolForPort(&tc.port)
    		if protocol != tc.expectedProtocol {
    			t.Fatalf("Output didn't match for the port protocol: got %s want %s", protocol, tc.expectedProtocol)
    		}
    	}
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Mar 28 09:54:01 GMT 2024
    - 30.4K bytes
    - Viewed (0)
  4. cmd/handler-api.go

    		pool, deadline := globalAPIConfig.getRequestsPool()
    		if pool == nil {
    			f.ServeHTTP(w, r)
    			return
    		}
    
    		globalHTTPStats.addRequestsInQueue(1)
    
    		if tc, ok := r.Context().Value(mcontext.ContextTraceKey).(*mcontext.TraceCtxt); ok {
    			tc.FuncName = "s3.MaxClients"
    		}
    
    		deadlineTimer := time.NewTimer(deadline)
    		defer deadlineTimer.Stop()
    
    		select {
    		case pool <- struct{}{}:
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 10K bytes
    - Viewed (0)
  5. src/archive/tar/reader_test.go

    			tr := NewReader(f)
    			for i, tc := range v.cases {
    				hdr, err := tr.Next()
    				if err != nil || hdr == nil {
    					t.Fatalf("entry %d, Next(): got %v, want %v", i, err, nil)
    				}
    				buf := make([]byte, tc.cnt)
    				if _, err := io.ReadFull(tr, buf); err != nil {
    					t.Fatalf("entry %d, ReadFull(): got %v, want %v", i, err, nil)
    				}
    				if string(buf) != tc.output {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Nov 21 21:14:38 GMT 2022
    - 47.1K bytes
    - Viewed (0)
Back to top