Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 2,018 for allDocs (0.15 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1/marshal_test.go

    		{`{"val1": {"type":"string"}}`, JSONSchemaPropsOrBoolHolder{JSPoB: JSONSchemaPropsOrBool{Allows: true, Schema: &JSONSchemaProps{Type: "string"}}}},
    		{`{"val1": false}`, JSONSchemaPropsOrBoolHolder{JSPoB: JSONSchemaPropsOrBool{}}},
    		{`{"val1": true}`, JSONSchemaPropsOrBoolHolder{JSPoB: JSONSchemaPropsOrBool{Allows: true}}},
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 10 12:12:24 UTC 2018
    - 7.1K bytes
    - Viewed (0)
  2. src/go/internal/gccgoimporter/testdata/escapeinfo.go

    // Test case for escape info in export data. To compile and extract .gox file:
    // gccgo -fgo-optimize-allocs -c escapeinfo.go
    // objcopy -j .go_export escapeinfo.o escapeinfo.gox
    
    package escapeinfo
    
    type T struct{ data []byte }
    
    func NewT(data []byte) *T {
    	return &T{data}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 19:41:25 UTC 2018
    - 306 bytes
    - Viewed (0)
  3. src/runtime/iface_test.go

    	if runtime.Compiler != "gc" {
    		t.Skip("skipping on non-gc compiler")
    	}
    
    	n := testing.AllocsPerRun(1, func() {
    		_ = e == ts
    		_ = i1 == ts
    		_ = e == 1
    	})
    
    	if n > 0 {
    		t.Fatalf("iface cmp allocs=%v; want 0", n)
    	}
    }
    
    func BenchmarkEqEfaceConcrete(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    		_ = e == ts
    	}
    }
    
    func BenchmarkEqIfaceConcrete(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 7.5K bytes
    - Viewed (0)
  4. src/net/udpsock_test.go

    			t.Fatal(err)
    		}
    	})
    	if got := int(allocs); got != 0 {
    		t.Errorf("WriteToUDPAddrPort/ReadFromUDPAddrPort allocated %d objects", got)
    	}
    
    	allocs = testing.AllocsPerRun(1000, func() {
    		_, err := conn.WriteTo(buf, addr)
    		if err != nil {
    			t.Fatal(err)
    		}
    		_, _, err = conn.ReadFromUDP(buf)
    		if err != nil {
    			t.Fatal(err)
    		}
    	})
    	if got := int(allocs); got != 1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 17.2K bytes
    - Viewed (0)
  5. platforms/software/testing-base/src/test/groovy/org/gradle/api/internal/tasks/testing/logging/DefaultTestLoggingTest.groovy

            logging.maxGranularity == -1
            logging.stackTraceFilters == [TRUNCATE] as Set
        }
    
        def "allows events to be added as enum values"() {
            when:
            logging.events STARTED, SKIPPED
    
            then:
            logging.events == [STARTED, SKIPPED] as Set
        }
    
        def "allows events to be added as string values"() {
            when:
            logging.events "started", "skipped"
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  6. pkg/kube/krt/join_test.go

    		Labeled: Labeled{map[string]string{"app": "foo"}},
    		IP:      "9.9.9.9",
    	})
    	AllPods := krt.JoinCollection([]krt.Collection[SimplePod]{SimplePods, ExtraSimplePods.AsCollection()})
    	assert.Equal(t, AllPods.Synced().WaitUntilSynced(stop), true)
    	// Assert Equal -- not EventuallyEqual -- to ensure our WaitForCacheSync is proper
    	assert.Equal(t, fetcherSorted(AllPods)(), []SimplePod{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 09 19:55:53 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  7. src/unicode/utf16/utf16_test.go

    func TestAllocationsDecode(t *testing.T) {
    	testenv.SkipIfOptimizationOff(t)
    
    	for _, tt := range decodeTests {
    		allocs := testing.AllocsPerRun(10, func() {
    			out := Decode(tt.in)
    			if out == nil {
    				t.Errorf("Decode(%x) = nil", tt.in)
    			}
    		})
    		if allocs > 0 {
    			t.Errorf("Decode allocated %v times", allocs)
    		}
    	}
    }
    
    func TestDecode(t *testing.T) {
    	for _, tt := range decodeTests {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 19:08:48 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  8. src/runtime/malloc.go

    		if v == nil {
    			return nil, 0
    		}
    
    		// Create new hints for extending this region.
    		hint := (*arenaHint)(h.arenaHintAlloc.alloc())
    		hint.addr, hint.down = uintptr(v), true
    		hint.next, mheap_.arenaHints = mheap_.arenaHints, hint
    		hint = (*arenaHint)(h.arenaHintAlloc.alloc())
    		hint.addr = uintptr(v) + size
    		hint.next, mheap_.arenaHints = mheap_.arenaHints, hint
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 59.6K bytes
    - Viewed (0)
  9. src/log/slog/internal/buffer/buffer_test.go

    	}
    	testenv.SkipIfOptimizationOff(t)
    	got := int(testing.AllocsPerRun(5, func() {
    		b := New()
    		defer b.Free()
    		b.WriteString("not 1K worth of bytes")
    	}))
    	if got != 0 {
    		t.Errorf("got %d allocs, want 0", got)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 17 16:48:35 UTC 2023
    - 776 bytes
    - Viewed (0)
  10. pkg/proxy/healthcheck/common.go

    */
    
    package healthcheck
    
    import (
    	"net"
    	"net/http"
    )
    
    // listener allows for testing of ServiceHealthServer and ProxierHealthServer.
    type listener interface {
    	// Listen is very much like net.Listen, except the first arg (network) is
    	// fixed to be "tcp".
    	Listen(addr string) (net.Listener, error)
    }
    
    // httpServerFactory allows for testing of ServiceHealthServer and ProxierHealthServer.
    type httpServerFactory interface {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Dec 29 09:11:29 UTC 2022
    - 1.8K bytes
    - Viewed (0)
Back to top