Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 45 for testValue (0.19 sec)

  1. staging/src/k8s.io/apimachinery/pkg/test/apis_meta_v1_unstructed_unstructure_test.go

    				"creationTimestamp":          "2009-11-10T23:00:00Z",
    				"deletionTimestamp":          "2010-11-10T23:00:00Z",
    				"labels": map[string]interface{}{
    					"test_label": "test_value",
    				},
    				"annotations": map[string]interface{}{
    					"test_annotation": "test_value",
    				},
    				"ownerReferences": []interface{}{
    					map[string]interface{}{
    						"kind":       "Pod",
    						"name":       "poda",
    						"apiVersion": "v1",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 05 20:12:50 UTC 2022
    - 17.3K bytes
    - Viewed (0)
  2. clause/values_test.go

    package clause_test
    
    import (
    	"fmt"
    	"testing"
    
    	"gorm.io/gorm/clause"
    )
    
    func TestValues(t *testing.T) {
    	results := []struct {
    		Clauses []clause.Interface
    		Result  string
    		Vars    []interface{}
    	}{
    		{
    			[]clause.Interface{
    				clause.Insert{},
    				clause.Values{
    					Columns: []clause.Column{{Name: "name"}, {Name: "age"}},
    					Values:  [][]interface{}{{"jinzhu", 18}, {"josh", 1}},
    				},
    			},
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Thu Jan 06 07:02:53 UTC 2022
    - 691 bytes
    - Viewed (0)
  3. test/typeparam/mapsimp.dir/main.go

    	}
    
    	got2 := a.Keys(m2)
    	sort.Ints(got2)
    	if !a.SliceEqual(got2, want) {
    		panic(fmt.Sprintf("a.Keys(%v) = %v, want %v", m2, got2, want))
    	}
    }
    
    func TestValues() {
    	got1 := a.Values(m1)
    	want1 := []int{2, 4, 8, 16}
    	sort.Ints(got1)
    	if !a.SliceEqual(got1, want1) {
    		panic(fmt.Sprintf("a.Values(%v) = %v, want %v", m1, got1, want1))
    	}
    
    	got2 := a.Values(m2)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 24 02:14:15 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/google/MultimapValuesTester.java

     */
    @GwtCompatible
    @Ignore // Affects only Android test runner, which respects JUnit 4 annotations on JUnit 3 tests.
    public class MultimapValuesTester<K, V> extends AbstractMultimapTester<K, V, Multimap<K, V>> {
      public void testValues() {
        List<V> expected = Lists.newArrayList();
        for (Entry<K, V> entry : getSampleElements()) {
          expected.add(entry.getValue());
        }
        assertEqualIgnoringOrder(expected, multimap().values());
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jan 09 20:10:38 UTC 2018
    - 2.5K bytes
    - Viewed (0)
  5. src/maps/iter_test.go

    		var got []int
    		for k := range Keys(m) {
    			got = append(got, k)
    		}
    		slices.Sort(got)
    		if !slices.Equal(got, want) {
    			t.Errorf("Keys(%v) = %v, want %v", m, got, want)
    		}
    	}
    }
    
    func TestValues(t *testing.T) {
    	for size := 0; size < 10; size++ {
    		var want []int
    		m := make(map[int]int)
    		for i := range size {
    			m[i] = i
    			want = append(want, i)
    		}
    
    		var got []int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:44:19 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapValuesTester.java

     */
    @GwtCompatible
    @Ignore // Affects only Android test runner, which respects JUnit 4 annotations on JUnit 3 tests.
    public class MultimapValuesTester<K, V> extends AbstractMultimapTester<K, V, Multimap<K, V>> {
      public void testValues() {
        List<V> expected = Lists.newArrayList();
        for (Entry<K, V> entry : getSampleElements()) {
          expected.add(entry.getValue());
        }
        assertEqualIgnoringOrder(expected, multimap().values());
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jan 09 20:10:38 UTC 2018
    - 2.5K bytes
    - Viewed (0)
  7. test/typeparam/maps.go

    	}
    
    	got2 := _Keys(m2)
    	sort.Ints(got2)
    	if !_SliceEqual(got2, want) {
    		panic(fmt.Sprintf("_Keys(%v) = %v, want %v", m2, got2, want))
    	}
    }
    
    func TestValues() {
    	got1 := _Values(m1)
    	want1 := []int{2, 4, 8, 16}
    	sort.Ints(got1)
    	if !_SliceEqual(got1, want1) {
    		panic(fmt.Sprintf("_Values(%v) = %v, want %v", m1, got1, want1))
    	}
    
    	got2 := _Values(m2)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 5.9K bytes
    - Viewed (0)
  8. src/slices/iter_test.go

    				t.Errorf("at iteration %d got %d, %d want %d, %d", cnt, i, v, ei, ev)
    			}
    			ei--
    			ev--
    			cnt++
    		}
    		if cnt != size {
    			t.Errorf("read %d values expected %d", cnt, size)
    		}
    	}
    }
    
    func TestValues(t *testing.T) {
    	for size := 0; size < 10; size++ {
    		var s []int
    		for i := range size {
    			s = append(s, i)
    		}
    		ev := 0
    		cnt := 0
    		for v := range Values(s) {
    			if v != ev {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 17:28:50 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  9. src/internal/syscall/windows/registry/registry_test.go

    		return
    	}
    	if err != registry.ErrNotExist {
    		t.Errorf("GetValue(%q) should return 'not exist' error, but got: %s", test.Name, err)
    		return
    	}
    }
    
    func testValues(t *testing.T, k registry.Key) {
    	for _, test := range ValueTests {
    		switch test.Type {
    		case registry.SZ, registry.EXPAND_SZ:
    			if test.WillFail {
    				_, _, err := k.GetStringValue(test.Name)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 19:19:00 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  10. src/flag/flag.go

    	}
    	ptrVal.Elem().Set(defVal)
    	return textValue{p}
    }
    
    func (v textValue) Set(s string) error {
    	return v.p.UnmarshalText([]byte(s))
    }
    
    func (v textValue) Get() interface{} {
    	return v.p
    }
    
    func (v textValue) String() string {
    	if m, ok := v.p.(encoding.TextMarshaler); ok {
    		if b, err := m.MarshalText(); err == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:38:24 UTC 2024
    - 39.7K bytes
    - Viewed (0)
Back to top