Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 6,658 for makeWE (0.15 sec)

  1. src/cmd/go/testdata/script/test_chatty_parallel_success_run.txt

    package chatty_parallel_test
    
    import (
    	"testing"
    )
    
    var (
    	afterFirstLog = make(chan struct{})
    	afterSubTest  = make(chan struct{})
    	afterSecondLog = make(chan struct{})
    )
    
    func TestInterruptor(t *testing.T) {
    	t.Parallel()
    
    	<-afterFirstLog
    	t.Run("interruption", func (t *testing.T) {})
    	close(afterSubTest)
    	<-afterSecondLog // Delay the "PASS: TestInterruptor" line until after "CONT  TestLog".
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 26 19:50:36 UTC 2022
    - 1K bytes
    - Viewed (0)
  2. cluster/images/kubemark/Makefile

    # This makefile assumes that the kubemark binary is present in this directory.
    
    # Allow the caller to override this.  Beware make's precedence. This:
    #   REGISTRY=$VAR make
    # .. is not the same as:
    #   make REGISTRY=$VAR
    REGISTRY := $(if $(REGISTRY),$(REGISTRY),staging-k8s.gcr.io)
    IMAGE_TAG := $(if $(IMAGE_TAG),$(IMAGE_TAG),latest)
    
    all: gcloudpush
    
    build:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Dec 27 13:57:53 UTC 2018
    - 1.2K bytes
    - Viewed (0)
  3. pkg/apis/flowcontrol/internalbootstrap/defaults_test.go

    			scheme.Default(defaulted)
    			if apiequality.Semantic.DeepEqual(original, defaulted) {
    				t.Logf("Defaulting makes no change to FlowSchema: %q", original.Name)
    				return
    			}
    			t.Errorf("Expected defaulting to not change FlowSchema: %q, diff: %s", original.Name, cmp.Diff(original, defaulted))
    		})
    	}
    
    	bootstrapPriorityLevels := make([]*flowcontrol.PriorityLevelConfiguration, 0)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:35 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  4. src/internal/trace/testdata/testprog/futile-wakeup.go

    // license that can be found in the LICENSE file.
    
    // Tests to make sure the runtime doesn't generate futile wakeups. For example,
    // it makes sure that a block on a channel send that unblocks briefly only to
    // immediately go back to sleep (in such a way that doesn't reveal any useful
    // information, and is purely an artifact of the runtime implementation) doesn't
    // make it into the trace.
    
    //go:build ignore
    
    package main
    
    import (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  5. test/fixedbugs/issue4085b.go

    		shouldPanic("cap out of range", func() { _ = make(T, 0, x) })
    		testMakeInAppend(int(x))
    	} else {
    		n = 1<<31 - 1
    		shouldPanic("len out of range", func() { _ = make(T, n) })
    		shouldPanic("cap out of range", func() { _ = make(T, 0, n) })
    		shouldPanic("len out of range", func() { _ = make(T, int64(n)) })
    		shouldPanic("cap out of range", func() { _ = make(T, 0, int64(n)) })
    		testMakeInAppend(n)
    		var x uint64 = 1<<32 - 1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 17 17:18:17 UTC 2019
    - 2.9K bytes
    - Viewed (0)
  6. src/strings/clone.go

    import (
    	"internal/stringslite"
    )
    
    // Clone returns a fresh copy of s.
    // It guarantees to make a copy of s into a new allocation,
    // which can be important when retaining only a small substring
    // of a much larger string. Using Clone can help such programs
    // use less memory. Of course, since using Clone makes a copy,
    // overuse of Clone can make programs use more memory.
    // Clone should typically be used only rarely, and only when
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 04 01:23:42 UTC 2024
    - 809 bytes
    - Viewed (0)
  7. pilot/pkg/serviceregistry/aggregate/controller_test.go

    			t.Fatal("Returned Instance is incorrect")
    		}
    	}
    
    	// Get Instances from mockAdapter2
    	instances = aggregateCtl.GetProxyServiceTargets(&model.Proxy{IPAddresses: []string{mock.MakeIP(mock.WorldService, 1)}})
    	if len(instances) != 6 {
    		t.Fatalf("Returned GetProxyServiceTargets' amount %d is not correct", len(instances))
    	}
    	for _, inst := range instances {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 06:28:11 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/test/testdata/dupLoad_test.go

    	return uint16(v), uint16(v) | uint16(b[1])<<8
    }
    
    func main1(t *testing.T) {
    	const N = 100000
    	done := make(chan bool, 2)
    	b := make([]byte, 2)
    	go func() {
    		for i := 0; i < N; i++ {
    			b[0] = byte(i)
    			b[1] = byte(i)
    		}
    		done <- true
    	}()
    	go func() {
    		for i := 0; i < N; i++ {
    			x, y := read1(b)
    			if byte(x) != byte(y) {
    				t.Errorf("x=%x y=%x\n", x, y)
    				done <- false
    				return
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 23 06:40:04 UTC 2020
    - 1.5K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/test/testdata/slice_test.go

    // license that can be found in the LICENSE file.
    
    // This test makes sure that t.s = t.s[0:x] doesn't write
    // either the slice pointer or the capacity.
    // See issue #14855.
    
    package main
    
    import "testing"
    
    const N = 1000000
    
    type X struct {
    	s []int
    }
    
    func TestSlice(t *testing.T) {
    	done := make(chan struct{})
    	a := make([]int, N+10)
    
    	x := &X{a}
    
    	go func() {
    		for i := 0; i < N; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 23 06:40:04 UTC 2020
    - 850 bytes
    - Viewed (0)
  10. pilot/pkg/serviceregistry/mock/discovery.go

    		MeshExternal:   isMeshExternal,
    		Ports: []*model.Port{{
    			Name:     "https",
    			Port:     443,
    			Protocol: protocol.HTTPS,
    		}},
    	}
    }
    
    // MakeIP creates a fake IP address for a service and instance version
    func MakeIP(service *model.Service, version int) string {
    	// external services have no instances
    	if service.External() {
    		return ""
    	}
    	ipa, ise := netip.ParseAddr(service.DefaultAddress)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Aug 07 18:40:05 UTC 2023
    - 3.7K bytes
    - Viewed (0)
Back to top