Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 59 for foo211 (0.11 sec)

  1. test/typeparam/issue48049.go

    package main
    
    func main() {
    	Gooer2[byte]()
    }
    
    type Fooer[T any] interface {
    	Foo(p T)
    }
    
    type fooer1[T any] struct{}
    
    func (fooer1[T]) Foo(T) {}
    
    type fooer2[T any] struct {
    	r []Fooer[T]
    }
    
    //go:noinline
    func (mr fooer2[T]) Foo(p T) {
    	mr.r[0] = fooer1[T]{}
    	return
    }
    
    func Gooer2[T any]() Fooer[T] {
    	return fooer2[T]{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 493 bytes
    - Viewed (0)
  2. pkg/cache/cache_test.go

    			for j := 0; j < each; j++ {
    				c.Set("foo1", "bar")
    				c.Set("foo2", "bar")
    				c.Set("foo3", "bar")
    				c.Set("foo4", "bar")
    				c.Set("foo5", "bar")
    				c.Set("foo6", "bar")
    				c.Set("foo7", "bar")
    			}
    			wg.Done()
    		}()
    	}
    	wg.Wait()
    }
    
    func benchmarkCacheGetSetConcurrent(c Cache, b *testing.B) {
    	c.Set("foo1", "bar")
    	c.Set("foo2", "bar")
    	c.Set("foo3", "bar")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 24 15:56:49 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  3. src/internal/types/testdata/fixedbugs/issue47747.go

    // func _[t any](f Fooer1[t]) t {
    // 	var b Bar[t]
    // 	f.Foo(&b)
    // 	return t(b)
    // }
    
    // Test case 2 from issue
    
    // For now, a lone type parameter is not permitted as RHS in a type declaration (issue #45639).
    // type Fooer2[t any] interface {
    // 	Foo()
    // }
    // 
    // type Foo2[t any] t
    // 
    // func (f *Foo2[t]) Foo() {}
    // 
    // func _[t any](v t) {
    // 	var f = Foo2[t](v)
    // 	_ = Fooer2[t](&f)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:27 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/apis/kubeadm/argument_test.go

    			name:          "a",
    			expectedValue: "a1",
    			expectedIdx:   0,
    			startIdx:      0,
    		},
    		{
    			testName:      "argument exists with empty value",
    			args:          []Arg{{Name: "foo1", Value: ""}, {Name: "foo2", Value: ""}},
    			name:          "foo2",
    			expectedValue: "",
    			expectedIdx:   1,
    			startIdx:      -1,
    		},
    		{
    			testName:      "argument does not exists",
    			args:          []Arg{{Name: "foo", Value: "bar"}},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 16 10:27:05 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  5. src/internal/types/testdata/fixedbugs/issue39634.go

    type G15[X any] s /* ERROR "undefined" */
    func (G15 /* ERRORx `generic type .* without instantiation` */ ) p()
    
    // crash 16
    type Foo16[T any] r16 /* ERROR "not a type" */
    func r16[T any]() Foo16[Foo16[T]] { panic(0) }
    
    // crash 17
    type Y17 interface{ c() }
    type Z17 interface {
    	c() Y17
    	Y17 /* ERROR "duplicate method" */
    }
    func F17[T Z17](T) {}
    
    // crash 18
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 05 18:13:11 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  6. pilot/pkg/serviceregistry/mock/discovery_mock.go

    		ServiceAccounts: []string{
    			"spiffe://cluster.local/ns/default/sa/foo1",
    			"spiffe://cluster.local/ns/default/sa/foo-share",
    		},
    		ClusterID: "",
    	})
    	ReplicatedFooServiceV2 = MakeService(ServiceArgs{
    		Hostname: ReplicatedFooServiceName,
    		Address:  "10.3.0.1",
    		ServiceAccounts: []string{
    			"spiffe://cluster.local/ns/default/sa/foo2",
    			"spiffe://cluster.local/ns/default/sa/foo-share",
    		},
    		ClusterID: "",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 23 02:37:56 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  7. fess-crawler/src/test/java/org/codelibs/fess/crawler/transformer/impl/FileTransformerTest.java

            FileUtil.writeBytes(file.getAbsolutePath(), "abc".getBytes());
    
            path = "foo1/hoge.html";
            file = fileTransformer.createFile(path);
            resultFile = new File(fileTransformer.baseDir, path);
            assertEquals(resultFile, file);
            FileUtil.writeBytes(file.getAbsolutePath(), "abc".getBytes());
    
            path = "foo1/foo2/hoge.html";
            file = fileTransformer.createFile(path);
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  8. subprojects/core/src/test/groovy/org/gradle/internal/xml/XmlValidationTest.groovy

            XmlValidation.isValidXmlName(name)
    
            where:
            name             | _
            'foo'            | _
            'FOO'            | _
            'foo-dash'       | _
            'foo.dot'        | _
            'foo123'         | _
            'ns:foo'         | _
            'foo_underscore' | _
            ':foo'           | _
            '_foo'           | _
            '\u00c0foo'      | _
            '\u00d8foo'      | _
            '\u00f8foo'      | _
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Nov 22 14:56:07 UTC 2019
    - 3.5K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiextensions-apiserver/test/integration/finalization_test.go

    	noxuDefinition, err = fixtures.CreateNewV1CustomResourceDefinition(noxuDefinition, apiExtensionClient, dynamicClient)
    	require.NoError(t, err)
    
    	ns := "not-the-default"
    	name := "foo123"
    	noxuResourceClient := newNamespacedCustomResourceClient(ns, dynamicClient, noxuDefinition)
    
    	instance := fixtures.NewNoxuInstance(ns, name)
    	instance.SetFinalizers([]string{"noxu.example.com/finalizer"})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 02 19:34:41 UTC 2021
    - 5.8K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/test/switch_test.go

    	a := []string{
    		"foo",
    		"foo1",
    		"foo22",
    		"foo333",
    		"foo4444",
    		"foo55555",
    		"foo666666",
    		"foo7777777",
    	}
    	n := 0
    	rng := newRNG()
    	for i := 0; i < b.N; i++ {
    		rng = rng.next(predictable)
    		switch a[rng.value()&7] {
    		case "foo":
    			n += 1
    		case "foo1":
    			n += 2
    		case "foo22":
    			n += 3
    		case "foo333":
    			n += 4
    		case "foo4444":
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 06 15:42:30 UTC 2023
    - 4.2K bytes
    - Viewed (0)
Back to top