Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for intSlice (0.21 sec)

  1. staging/src/k8s.io/api/testdata/HEAD/resource.k8s.io.v1alpha2.ResourceSlice.yaml

        name: nameValue
        uid: uidValue
      resourceVersion: resourceVersionValue
      selfLink: selfLinkValue
      uid: uidValue
    namedResources:
      instances:
      - attributes:
        - bool: true
          int: 7
          intSlice:
            ints:
            - 1
          name: nameValue
          quantity: "0"
          string: stringValue
          stringSlice:
            strings:
            - stringsValue
          version: versionValue
        name: nameValue
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  2. src/sort/sort_test.go

    	}
    	Ints(data)
    	if !IntsAreSorted(data) {
    		t.Errorf("sort didn't sort - 1M ints")
    	}
    }
    
    func TestReverseSortIntSlice(t *testing.T) {
    	data := ints
    	data1 := ints
    	a := IntSlice(data[0:])
    	Sort(a)
    	r := IntSlice(data1[0:])
    	Sort(Reverse(r))
    	for i := 0; i < len(data); i++ {
    		if a[i] != r[len(data)-1-i] {
    			t.Errorf("reverse sort didn't sort")
    		}
    		if i > len(data)/2 {
    			break
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 19:41:04 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  3. staging/src/k8s.io/api/testdata/v1.30.0/resource.k8s.io.v1alpha2.ResourceSlice.yaml

        name: nameValue
        uid: uidValue
      resourceVersion: resourceVersionValue
      selfLink: selfLinkValue
      uid: uidValue
    namedResources:
      instances:
      - attributes:
        - bool: true
          int: 7
          intSlice:
            ints:
            - 1
          name: nameValue
          quantity: "0"
          string: stringValue
          stringSlice:
            strings:
            - stringsValue
          version: versionValue
        name: nameValue
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 08:52:25 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  4. staging/src/k8s.io/api/testdata/HEAD/resource.k8s.io.v1alpha2.ResourceSlice.json

          {
            "name": "nameValue",
            "attributes": [
              {
                "name": "nameValue",
                "quantity": "0",
                "bool": true,
                "int": 7,
                "intSlice": {
                  "ints": [
                    1
                  ]
                },
                "string": "stringValue",
                "stringSlice": {
                  "strings": [
                    "stringsValue"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  5. staging/src/k8s.io/api/testdata/v1.30.0/resource.k8s.io.v1alpha2.ResourceSlice.json

          {
            "name": "nameValue",
            "attributes": [
              {
                "name": "nameValue",
                "quantity": "0",
                "bool": true,
                "int": 7,
                "intSlice": {
                  "ints": [
                    1
                  ]
                },
                "string": "stringValue",
                "stringSlice": {
                  "strings": [
                    "stringsValue"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 08:52:25 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  6. src/sort/sort_slices_benchmark_test.go

    	}
    	Strings(x)
    	return x
    }
    
    const N = 100_000
    
    func BenchmarkSortInts(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    		b.StopTimer()
    		ints := makeRandomInts(N)
    		b.StartTimer()
    		Sort(IntSlice(ints))
    	}
    }
    
    func BenchmarkSlicesSortInts(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    		b.StopTimer()
    		ints := makeRandomInts(N)
    		b.StartTimer()
    		slices.Sort(ints)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 08 22:59:40 UTC 2024
    - 4K bytes
    - Viewed (0)
  7. staging/src/k8s.io/api/resource/v1alpha2/namedresources.go

    	// IntValue is a 64-bit integer.
    	IntValue *int64 `json:"int,omitempty" protobuf:"varint,7,opt,name=int"`
    	// IntSliceValue is an array of 64-bit integers.
    	IntSliceValue *NamedResourcesIntSlice `json:"intSlice,omitempty" protobuf:"varint,8,rep,name=intSlice"`
    	// StringValue is a string.
    	StringValue *string `json:"string,omitempty" protobuf:"bytes,5,opt,name=string"`
    	// StringSliceValue is an array of strings.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 22 12:18:45 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  8. pkg/apis/resource/structured/namedresources/validation/validation_test.go

    		},
    		"bool": {
    			selector: `attributes.bool["name"]`,
    		},
    		"int": {
    			selector: `attributes.int["name"] > 0`,
    		},
    		"intslice": {
    			selector: `attributes.intslice["name"].isSorted()`,
    		},
    		"string": {
    			selector: `attributes.string["name"] == "fish"`,
    		},
    		"stringslice": {
    			selector: `attributes.stringslice["name"].isSorted()`,
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:13 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  9. pkg/apis/resource/structured/namedresources/validation/validation.go

    		}
    		if attribute.BoolValue != nil {
    			entries.Insert("bool")
    		}
    		if attribute.IntValue != nil {
    			entries.Insert("int")
    		}
    		if attribute.IntSliceValue != nil {
    			entries.Insert("intSlice")
    		}
    		if attribute.StringValue != nil {
    			entries.Insert("string")
    		}
    		if attribute.StringSliceValue != nil {
    			entries.Insert("stringSlice")
    		}
    		if attribute.VersionValue != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:26:20 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  10. staging/src/k8s.io/api/resource/v1alpha2/generated.proto

      optional bool bool = 2;
    
      // IntValue is a 64-bit integer.
      optional int64 int = 7;
    
      // IntSliceValue is an array of 64-bit integers.
      optional NamedResourcesIntSlice intSlice = 8;
    
      // StringValue is a string.
      optional string string = 5;
    
      // StringSliceValue is an array of strings.
      optional NamedResourcesStringSlice stringSlice = 9;
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 22:07:50 UTC 2024
    - 26.2K bytes
    - Viewed (0)
Back to top