Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 201 for newFoo (0.12 sec)

  1. src/go/printer/testdata/slow.input

    entries: map[int]interface{}{
    2: &Foo{},
    1: &Bar{},
    -1: &Baz{ whatever: "... it's just a test." }}}},
            bang: &Bar{foo: []*Foo{}}}}}}}}}
    }
    
    func TestElaborate(t *testing.T) {
            a := newFoo()
            b := newFoo()
    
            if err := deepequal.Check(a, b); err != nil {
                    t.Errorf("expected nil, saw %v", err)
            }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 1.9K bytes
    - Viewed (0)
  2. src/go/printer/testdata/slow.golden

    							2:	&Foo{},
    							1:	&Bar{},
    							-1:	&Baz{whatever: "... it's just a test."}}}},
    						bang:	&Bar{foo: []*Foo{}}}}}}}}}
    }
    
    func TestElaborate(t *testing.T) {
    	a := newFoo()
    	b := newFoo()
    
    	if err := deepequal.Check(a, b); err != nil {
    		t.Errorf("expected nil, saw %v", err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 2K bytes
    - Viewed (0)
  3. analysis/analysis-api/testData/components/compilerFacility/firPluginPrototypeMultiModule/annotationForFunctionOutOfCodeGenTarget2.kt

    @MyComposable
    fun Greeting(): String {
        return "Hi $foo!"
    }
    
    // FILE: p3/foo.kt
    package p3
    
    import org.jetbrains.kotlin.fir.plugin.MyComposable
    
    private var foo_ = 0
    
    fun setFoo(newFoo: Int) {
        foo_ = newFoo
    }
    
    val foo: Int
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Mar 26 07:06:11 UTC 2024
    - 486 bytes
    - Viewed (0)
  4. test/fixedbugs/issue44732.dir/main.go

    // license that can be found in the LICENSE file.
    
    package main
    
    import (
    	"issue44732.dir/bar"
    	"issue44732.dir/foo"
    )
    
    func main() {
    	_ = bar.Bar{}
    	_ = foo.NewFoo()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 08 19:43:19 UTC 2021
    - 279 bytes
    - Viewed (0)
  5. test/fixedbugs/issue44732.dir/foo/foo.go

    // Copyright 2021 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package foo
    
    type Foo struct {
    	updatecb func()
    }
    
    func NewFoo() *Foo {
    	return &Foo{updatecb: nil}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 08 19:43:19 UTC 2021
    - 262 bytes
    - Viewed (0)
  6. cmd/kube-scheduler/app/server_test.go

    		{
    			name: "out-of-tree component configuration v1",
    			flags: []string{
    				"--config", outOfTreePluginConfigFilev1,
    				"--kubeconfig", configKubeconfig,
    			},
    			registryOptions: []Option{WithPlugin("Foo", newFoo)},
    			wantPlugins: map[string]*config.Plugins{
    				"default-scheduler": func() *config.Plugins {
    					plugins := defaults.ExpandedPluginsV1.DeepCopy()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  7. pkg/controller/job/job_controller_test.go

    	for i := 0; i < count; i++ {
    		newPod := newPod(fmt.Sprintf("pod-%v", rand.String(10)), job)
    		newPod.Status = v1.PodStatus{Phase: status}
    		newPod.Status.ContainerStatuses = []v1.ContainerStatus{
    			{
    				State: v1.ContainerState{
    					Terminated: &v1.ContainerStateTerminated{
    						FinishedAt: testFinishedAt,
    					},
    				},
    			},
    		}
    		newPod.Finalizers = append(newPod.Finalizers, batch.JobTrackingFinalizer)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 15:36:36 UTC 2024
    - 229.2K bytes
    - Viewed (0)
  8. src/cmd/link/testdata/linkname/coro_var.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Linkname "var" to reference newcoro is not allowed.
    
    package main
    
    import "unsafe"
    
    func main() {
    	call(&newcoro)
    }
    
    //go:linkname newcoro runtime.newcoro
    var newcoro unsafe.Pointer
    
    //go:noinline
    func call(*unsafe.Pointer) {
    	// not implemented
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 17:05:33 UTC 2024
    - 411 bytes
    - Viewed (0)
  9. pkg/registry/rbac/helpers_test.go

    	}{
    		{
    			name: "same",
    			obj: func() runtime.Object {
    				return newPod()
    			},
    			old: func() runtime.Object {
    				return newPod()
    			},
    			expected: true,
    		},
    		{
    			name: "different managedFields",
    			obj: func() runtime.Object {
    				return newPod()
    			},
    			old: func() runtime.Object {
    				obj := newPod()
    				obj.ManagedFields = []metav1.ManagedFieldsEntry{
    					{
    						Manager: "manager",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 05 20:12:50 UTC 2022
    - 4.7K bytes
    - Viewed (0)
  10. operator/pkg/controller/istiocontrolplane/istiocontrolplane_controller.go

    					crHash := strings.Join([]string{newIOP.Name, newIOP.Namespace, string(component), host}, "-")
    					cache.RemoveCache(crHash)
    				}
    			}
    
    			if oldIOP.GetDeletionTimestamp() != newIOP.GetDeletionTimestamp() {
    				metrics.IncrementReconcileRequest("update_deletion_timestamp")
    				return true
    			}
    
    			if oldIOP.GetGeneration() != newIOP.GetGeneration() {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 13:56:46 UTC 2024
    - 19.4K bytes
    - Viewed (0)
Back to top