Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 176 for newobj (1.58 sec)

  1. pkg/registry/batch/job/strategy_test.go

    			featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.JobBackoffLimitPerIndex, tc.enableJobBackoffLimitPerIndex)
    			newJob := tc.job.DeepCopy()
    			tc.update(newJob)
    			errs := Strategy.ValidateUpdate(ctx, newJob, tc.job)
    			if diff := cmp.Diff(tc.wantErrs, errs, ignoreErrValueDetail); diff != "" {
    				t.Errorf("Unexpected errors (-want,+got):\n%s", diff)
    			}
    		})
    	}
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 101.5K bytes
    - Viewed (0)
  2. src/crypto/cipher/ofb.go

    	cipher  []byte
    	out     []byte
    	outUsed int
    }
    
    // NewOFB returns a [Stream] that encrypts or decrypts using the block cipher b
    // in output feedback mode. The initialization vector iv's length must be equal
    // to b's block size.
    func NewOFB(b Block, iv []byte) Stream {
    	blockSize := b.BlockSize()
    	if len(iv) != blockSize {
    		panic("cipher.NewOFB: IV length must equal block size")
    	}
    	bufSize := streamBufferSize
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 17:09:47 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  3. src/crypto/cipher/cbc.go

    package cipher
    
    import (
    	"bytes"
    	"crypto/internal/alias"
    	"crypto/subtle"
    )
    
    type cbc struct {
    	b         Block
    	blockSize int
    	iv        []byte
    	tmp       []byte
    }
    
    func newCBC(b Block, iv []byte) *cbc {
    	return &cbc{
    		b:         b,
    		blockSize: b.BlockSize(),
    		iv:        bytes.Clone(iv),
    		tmp:       make([]byte, b.BlockSize()),
    	}
    }
    
    type cbcEncrypter cbc
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 28 03:55:33 UTC 2022
    - 5.4K bytes
    - Viewed (0)
  4. src/vendor/golang.org/x/net/dns/dnsmessage/message.go

    }
    
    func (h *header) unpack(msg []byte, off int) (int, error) {
    	newOff := off
    	var err error
    	if h.id, newOff, err = unpackUint16(msg, newOff); err != nil {
    		return off, &nestedError{"id", err}
    	}
    	if h.bits, newOff, err = unpackUint16(msg, newOff); err != nil {
    		return off, &nestedError{"bits", err}
    	}
    	if h.questions, newOff, err = unpackUint16(msg, newOff); err != nil {
    		return off, &nestedError{"questions", err}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 09 00:09:40 UTC 2024
    - 69K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top