Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 1,649 for makeID (0.17 sec)

  1. internal/ringbuffer/ring_buffer_benchmark_test.go

    	rb := New(1024)
    	data := []byte(strings.Repeat("a", 512))
    	buf := make([]byte, 512)
    
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		rb.Write(data)
    		rb.Read(buf)
    	}
    }
    
    func BenchmarkRingBuffer_AsyncRead(b *testing.B) {
    	// Pretty useless benchmark, but it's here for completeness.
    	rb := New(1024)
    	data := []byte(strings.Repeat("a", 512))
    	buf := make([]byte, 512)
    
    	go func() {
    		for {
    			rb.Read(buf)
    		}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 15 00:11:04 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  2. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/service/ServiceRegistryBuilder.java

            return this;
        }
    
        public ServiceRegistryBuilder provider(ServiceRegistrationProvider provider) {
            this.providers.add(provider);
            return this;
        }
    
        /**
         * Providing a scope makes the resulting {@link ServiceRegistry}
         * validate all registered services for being annotated with the given scope.
         * <p>
         * However, this still allows to register services without the
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 12:34:44 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  3. pkg/controller/volume/persistentvolume/pv_controller_test.go

    			errors:          noerrors,
    			test: func(ctrl *PersistentVolumeController, reactor *pvtesting.VolumeReactor, test controllerTest) error {
    				return nil
    			},
    		},
    		{
    			// deleteClaim with a bound claim makes bound volume released.
    			name:            "5-3 - delete claim",
    			initialVolumes:  newVolumeArray("volume5-3", "10Gi", "uid5-3", "claim5-3", v1.VolumeBound, v1.PersistentVolumeReclaimRetain, classEmpty, volume.AnnBoundByController),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 43.4K bytes
    - Viewed (0)
  4. src/internal/weak/pointer_test.go

    	}
    }
    
    func TestPointerEquality(t *testing.T) {
    	bt := make([]*T, 10)
    	wt := make([]weak.Pointer[T], 10)
    	for i := range bt {
    		bt[i] = new(T)
    		wt[i] = weak.Make(bt[i])
    	}
    	for i := range bt {
    		st := wt[i].Strong()
    		if st != bt[i] {
    			t.Fatalf("weak pointer is not the same as strong pointer: %p vs. %p", st, bt[i])
    		}
    		if wp := weak.Make(st); wp != wt[i] {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 21:25:11 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  5. .github/workflows/go-healing.yml

            run: |
              sudo sysctl net.ipv6.conf.all.disable_ipv6=0
              sudo sysctl net.ipv6.conf.default.disable_ipv6=0
              make verify-healing
              make verify-healing-inconsistent-versions
              make verify-healing-with-root-disks
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 22 23:07:14 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  6. src/math/rand/rand_test.go

    	expected := &statsResults{mean, stddev, 0.10 * errorScale, 0.08 * errorScale}
    
    	// Make sure that the entire set matches the expected distribution.
    	checkSampleDistribution(t, samples, expected)
    
    	// Make sure that each half of the set matches the expected distribution.
    	checkSampleSliceDistributions(t, samples, 2, expected)
    
    	// Make sure that each 7th of the set matches the expected distribution.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/util/framer/framer_test.go

    	buf := make([]byte, 1)
    	if n, err := r.Read(buf); err != io.ErrShortBuffer && n != 1 && bytes.Equal(buf, []byte{0x01}) {
    		t.Fatalf("unexpected: %v %d %v", err, n, buf)
    	}
    	if n, err := r.Read(buf); err != io.ErrShortBuffer && n != 1 && bytes.Equal(buf, []byte{0x02}) {
    		t.Fatalf("unexpected: %v %d %v", err, n, buf)
    	}
    	// read the remaining frame
    	buf = make([]byte, 2)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 13:33:12 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  8. src/crypto/tls/handshake_messages.go

    		case extensionQUICTransportParameters:
    			m.quicTransportParameters = make([]byte, len(extData))
    			if !extData.CopyBytes(m.quicTransportParameters) {
    				return false
    			}
    		case extensionEarlyData:
    			// RFC 8446, Section 4.2.10
    			m.earlyData = true
    		case extensionEncryptedClientHello:
    			m.echRetryConfigs = make([]byte, len(extData))
    			if !extData.CopyBytes(m.echRetryConfigs) {
    				return false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 51.8K bytes
    - Viewed (0)
  9. src/go/types/resolver.go

    		// otherwise, continue resolving
    		typ = tdecl.Type
    		if seen == nil {
    			seen = make(map[*TypeName]bool)
    		}
    		seen[tname] = true
    	}
    }
    
    // packageObjects typechecks all package objects, but not function bodies.
    func (check *Checker) packageObjects() {
    	// process package objects in source order for reproducible results
    	objList := make([]Object, len(check.objMap))
    	i := 0
    	for obj := range check.objMap {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:22:59 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  10. src/compress/flate/deflate.go

    	switch {
    	case level == NoCompression:
    		d.window = make([]byte, maxStoreBlockSize)
    		d.fill = (*compressor).fillStore
    		d.step = (*compressor).store
    	case level == HuffmanOnly:
    		d.window = make([]byte, maxStoreBlockSize)
    		d.fill = (*compressor).fillStore
    		d.step = (*compressor).storeHuff
    	case level == BestSpeed:
    		d.compressionLevel = levels[level]
    		d.window = make([]byte, maxStoreBlockSize)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:32:40 UTC 2024
    - 20.3K bytes
    - Viewed (0)
Back to top