Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 189 for newobj (0.14 sec)

  1. pkg/test/loadbalancersim/lb_test.go

    		},
    	}
    
    	algorithmCases := []struct {
    		name  string
    		newLB func(conns []*loadbalancer.WeightedConnection) network.Connection
    	}{
    		{
    			name:  "round robin",
    			newLB: loadbalancer.NewRoundRobin,
    		},
    		{
    			name: "least request",
    			newLB: func(conns []*loadbalancer.WeightedConnection) network.Connection {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 19 23:29:30 UTC 2022
    - 11K bytes
    - Viewed (0)
  2. src/crypto/cipher/ofb_test.go

    		if err != nil {
    			t.Errorf("%s: NewCipher(%d bytes) = %s", test, len(tt.key), err)
    			continue
    		}
    
    		for j := 0; j <= 5; j += 5 {
    			plaintext := tt.in[0 : len(tt.in)-j]
    			ofb := cipher.NewOFB(c, tt.iv)
    			ciphertext := make([]byte, len(plaintext))
    			ofb.XORKeyStream(ciphertext, plaintext)
    			if !bytes.Equal(ciphertext, tt.out[:len(plaintext)]) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 3K bytes
    - Viewed (0)
  3. maven-di/src/test/java/org/apache/maven/di/impl/InjectorImplTest.java

            assertNotNull(inst);
        }
    
        static class BindInterfaces {
    
            interface TestInterface<T> {
                T getObj();
            }
    
            @Named
            static class ClassImpl implements TestInterface<String> {
                @Override
                public String getObj() {
                    return null;
                }
            }
    
            @Named
            @Typed
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Feb 09 17:13:31 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ir/const.go

    	panic("unreachable")
    }
    
    var (
    	intZero     = constant.MakeInt64(0)
    	floatZero   = constant.ToFloat(intZero)
    	complexZero = constant.ToComplex(intZero)
    )
    
    // NewOne returns an OLITERAL representing 1 with the given type.
    func NewOne(pos src.XPos, typ *types.Type) Node {
    	var val constant.Value
    	switch {
    	case typ.IsInteger():
    		val = intOne
    	case typ.IsFloat():
    		val = floatOne
    	case typ.IsComplex():
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 18:53:26 UTC 2023
    - 4K bytes
    - Viewed (0)
  5. src/crypto/cipher/example_test.go

    		panic(err)
    	}
    
    	stream := cipher.NewOFB(block, iv)
    	stream.XORKeyStream(ciphertext[aes.BlockSize:], plaintext)
    
    	// It's important to remember that ciphertexts must be authenticated
    	// (i.e. by using crypto/hmac) as well as being encrypted in order to
    	// be secure.
    
    	// OFB mode is the same for both encryption and decryption, so we can
    	// also decrypt that ciphertext with NewOFB.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 30 16:23:44 UTC 2018
    - 11.8K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/generic/policy_source_test.go

    	// totally fudged deepcopy
    	newFP := &FakePolicy{}
    	*newFP = *fp
    	return newFP
    }
    
    func (fb *FakeBinding) DeepCopyObject() runtime.Object {
    	// totally fudged deepcopy
    	newFB := &FakeBinding{}
    	*newFB = *fb
    	return newFB
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/op.go

    	return ValAndOff(int64(val)<<32 + int64(uint32(off)))
    }
    
    func (x ValAndOff) canAdd32(off int32) bool {
    	newoff := x.Off64() + int64(off)
    	return newoff == int64(int32(newoff))
    }
    func (x ValAndOff) canAdd64(off int64) bool {
    	newoff := x.Off64() + off
    	return newoff == int64(int32(newoff))
    }
    
    func (x ValAndOff) addOffset32(off int32) ValAndOff {
    	if !x.canAdd32(off) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 15:29:10 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  8. src/crypto/issue21104_test.go

    	}
    	test(t, "RC4", cipherText, cipher.XORKeyStream)
    }
    func TestCTROutOfBoundsWrite(t *testing.T) {
    	testBlock(t, "CTR", cipher.NewCTR)
    }
    func TestOFBOutOfBoundsWrite(t *testing.T) {
    	testBlock(t, "OFB", cipher.NewOFB)
    }
    func TestCFBEncryptOutOfBoundsWrite(t *testing.T) {
    	testBlock(t, "CFB Encrypt", cipher.NewCFBEncrypter)
    }
    func TestCFBDecryptOutOfBoundsWrite(t *testing.T) {
    	testBlock(t, "CFB Decrypt", cipher.NewCFBDecrypter)
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 06 06:03:36 UTC 2017
    - 1.8K bytes
    - Viewed (0)
  9. pkg/controller/ttlafterfinished/ttlafterfinished_controller_test.go

    	"time"
    
    	batchv1 "k8s.io/api/batch/v1"
    	corev1 "k8s.io/api/core/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/klog/v2"
    	"k8s.io/klog/v2/ktesting"
    	"k8s.io/utils/pointer"
    )
    
    func newJob(completionTime, failedTime metav1.Time, ttl *int32) *batchv1.Job {
    	j := &batchv1.Job{
    		TypeMeta: metav1.TypeMeta{Kind: "Job"},
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      "foobar",
    			Namespace: metav1.NamespaceDefault,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jun 18 18:46:26 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  10. pkg/controller/job/indexed_job_utils.go

    		}
    	}
    	for i < len(oi) && j < len(newOi) {
    		if oi[i].First < newOi[j].First {
    			appendOrMergeWithLastInterval(oi[i])
    			i++
    		} else {
    			appendOrMergeWithLastInterval(newOi[j])
    			j++
    		}
    	}
    	for i < len(oi) {
    		appendOrMergeWithLastInterval(oi[i])
    		i++
    	}
    	for j < len(newOi) {
    		appendOrMergeWithLastInterval(newOi[j])
    		j++
    	}
    	return result
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 21 00:44:53 UTC 2023
    - 17.5K bytes
    - Viewed (0)
Back to top