Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 174 for foo4 (0.05 sec)

  1. pkg/util/labels/labels_test.go

    				"foo3": "bar3",
    				"foo4": "food",
    			},
    		},
    		{
    			labels:     nil,
    			labelKey:   "foo4",
    			labelValue: "food",
    			want: map[string]string{
    				"foo4": "food",
    			},
    		},
    	}
    
    	for _, tc := range cases {
    		got := AddLabel(tc.labels, tc.labelKey, tc.labelValue)
    		if !reflect.DeepEqual(got, tc.want) {
    			t.Errorf("got %v, want %v", got, tc.want)
    		}
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 11 17:34:12 UTC 2017
    - 4.1K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/labels_test.go

    			want:   labels,
    		},
    		{
    			labels:     labels,
    			labelKey:   "foo4",
    			labelValue: "89",
    			want: map[string]string{
    				"foo1": "bar1",
    				"foo2": "bar2",
    				"foo3": "bar3",
    				"foo4": "89",
    			},
    		},
    		{
    			labels:     nil,
    			labelKey:   "foo4",
    			labelValue: "12",
    			want: map[string]string{
    				"foo4": "12",
    			},
    		},
    	}
    
    	for _, tc := range cases {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 07 11:09:05 UTC 2018
    - 2.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/tests/graphdef2mlir/graph-function-name-bug.pbtxt

        }
      }
      function {
        signature {
          name: "foo4"
        }
      }
      function {
        signature {
          name: "foo5"
        }
      }
      function {
        signature {
          name: "foo6"
        }
      }
      function {
        signature {
          name: "foo7"
        }
      }
      function {
        signature {
          name: "foo8"
        }
      }
      function {
        signature {
          name: "foo9"
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 2K bytes
    - Viewed (0)
  4. src/internal/types/testdata/check/lookup2.go

    	var x S
    	_ = x.Foo1 // OK
    	_ = x.Foo2 // ERROR "x.Foo2 undefined (type S has no field or method Foo2, but does have field FoO2)"
    	_ = x.Foo3 // ERROR "x.Foo3 undefined (type S has no field or method Foo3, but does have field foo3)"
    	_ = x.Foo4 // ERROR "x.Foo4 undefined (type S has no field or method Foo4, but does have field foO4)"
    
    	_ = x.foo1 // ERROR "x.foo1 undefined (type S has no field or method foo1, but does have field Foo1)"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 07 16:41:56 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  5. test/fixedbugs/issue5755.dir/a.go

    package a
    
    type I interface {
    	F()
    }
    
    type foo1 []byte
    type foo2 []rune
    type foo3 []uint8
    type foo4 []int32
    type foo5 string
    type foo6 string
    type foo7 string
    type foo8 string
    type foo9 string
    
    func (f foo1) F() { return }
    func (f foo2) F() { return }
    func (f foo3) F() { return }
    func (f foo4) F() { return }
    func (f foo5) F() { return }
    func (f foo6) F() { return }
    func (f foo7) F() { return }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 28 21:29:13 UTC 2013
    - 1.3K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/admission/plugin/cel/compile_test.go

    			errorExpressions: map[string]string{
    				"request.foo1 == 'nope'":                 "undefined field 'foo1'",
    				"request.resource.foo2 == 'nope'":        "undefined field 'foo2'",
    				"request.requestKind.foo3 == 'nope'":     "undefined field 'foo3'",
    				"request.requestResource.foo4 == 'nope'": "undefined field 'foo4'",
    				"request.userInfo.foo5 == 'nope'":        "undefined field 'foo5'",
    			},
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  7. pkg/cache/cache_test.go

    	c.Set("foo5", "bar")
    	c.Set("foo6", "bar")
    	c.Set("foo7", "bar")
    
    	wg := new(sync.WaitGroup)
    	workers := runtime.NumCPU()
    	each := b.N / workers
    	wg.Add(workers)
    
    	b.ResetTimer()
    	for i := 0; i < workers; i++ {
    		go func() {
    			for j := 0; j < each; j++ {
    				c.Get("foo1")
    				c.Get("foo2")
    				c.Get("foo3")
    				c.Get("foo5")
    				c.Get("foo6")
    				c.Get("foo7")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 24 15:56:49 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  8. pkg/kubelet/util/queue/work_queue_test.go

    	}
    }
    
    func TestGetWork(t *testing.T) {
    	q, clock := newTestBasicWorkQueue()
    	q.Enqueue(types.UID("foo1"), -1*time.Minute)
    	q.Enqueue(types.UID("foo2"), -1*time.Minute)
    	q.Enqueue(types.UID("foo3"), 1*time.Minute)
    	q.Enqueue(types.UID("foo4"), 1*time.Minute)
    	expected := []types.UID{types.UID("foo1"), types.UID("foo2")}
    	compareResults(t, expected, q.GetWork())
    	compareResults(t, []types.UID{}, q.GetWork())
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  9. test/fixedbugs/issue4215.go

    package main
    
    func foo() (int, int) {
    	return 2.3 // ERROR "not enough return values\n\thave \(number\)\n\twant \(int, int\)|not enough arguments to return"
    }
    
    func foo2() {
    	return int(2), 2 // ERROR "too many (arguments to return|return values)\n\thave \(int, number\)\n\twant \(\)|return with value in function with no return type"
    }
    
    func foo3(v int) (a, b, c, d int) {
    	if v >= 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 18 21:43:02 UTC 2022
    - 2K bytes
    - Viewed (0)
  10. pkg/adsc/adsc_test.go

    				constructResource("foo1", "foo1.bar.com", "192.1.1.11", "2"),
    				constructResource("foo2", "foo2.bar.com", "192.1.1.22", "1"),
    				constructResource("foo3", "foo3.bar.com", "192.1.1.3", ""),
    			},
    			expectedResources: [][]string{
    				{"foo1", "foo1.bar.com", "192.1.1.11"},
    				{"foo2", "foo2.bar.com", "192.1.1.2"},
    				{"foo3", "foo3.bar.com", "192.1.1.3"},
    			},
    		},
    		{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Dec 19 22:42:42 UTC 2023
    - 15.4K bytes
    - Viewed (0)
Back to top