Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 19 of 19 for slicetest (0.2 sec)

  1. src/slices/sort_benchmark_test.go

    // Copyright 2023 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 slices_test
    
    import (
    	"cmp"
    	"fmt"
    	"slices"
    	"strings"
    	"testing"
    )
    
    func BenchmarkBinarySearchFloats(b *testing.B) {
    	for _, size := range []int{16, 32, 64, 128, 512, 1024} {
    		b.Run(fmt.Sprintf("Size%d", size), func(b *testing.B) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 23:39:07 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  2. pkg/controller/endpointslice/endpointslice_controller_test.go

    	expectActions(t, client.Actions(), 1, "create", "endpointslices")
    
    	sliceList, err := client.DiscoveryV1().EndpointSlices(ns).List(context.TODO(), metav1.ListOptions{})
    	assert.Nil(t, err, "Expected no error fetching endpoint slices")
    	assert.Len(t, sliceList.Items, 1, "Expected 1 endpoint slices")
    	slice := sliceList.Items[0]
    	assert.Regexp(t, "^"+serviceName, slice.Name)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 08:33:32 UTC 2024
    - 65.5K bytes
    - Viewed (0)
  3. src/slices/iter_test.go

    // Copyright 2024 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 slices_test
    
    import (
    	"iter"
    	"math/rand/v2"
    	. "slices"
    	"testing"
    )
    
    func TestAll(t *testing.T) {
    	for size := 0; size < 10; size++ {
    		var s []int
    		for i := range size {
    			s = append(s, i)
    		}
    		ei, ev := 0, 0
    		cnt := 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 17:28:50 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  4. src/unicode/letter_test.go

    	0x2fa1d,
    }
    
    var notletterTest = []rune{
    	0x20,
    	0x35,
    	0x375,
    	0x619,
    	0x700,
    	0x1885,
    	0xfffe,
    	0x1ffff,
    	0x10ffff,
    }
    
    // Contains all the special cased Latin-1 chars.
    var spaceTest = []rune{
    	0x09,
    	0x0a,
    	0x0b,
    	0x0c,
    	0x0d,
    	0x20,
    	0x85,
    	0xA0,
    	0x2000,
    	0x3000,
    }
    
    type caseT struct {
    	cas     int
    	in, out rune
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 09 01:46:03 UTC 2023
    - 14.8K bytes
    - Viewed (0)
  5. src/slices/example_test.go

    // Copyright 2023 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 slices_test
    
    import (
    	"cmp"
    	"fmt"
    	"slices"
    	"strconv"
    	"strings"
    )
    
    func ExampleBinarySearch() {
    	names := []string{"Alice", "Bob", "Vera"}
    	n, found := slices.BinarySearch(names, "Vera")
    	fmt.Println("Vera:", n, found)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 17:28:50 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  6. src/slices/sort_test.go

    // Copyright 2023 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 slices_test
    
    import (
    	"cmp"
    	"fmt"
    	"math"
    	"math/rand"
    	. "slices"
    	"strconv"
    	"strings"
    	"testing"
    )
    
    var ints = [...]int{74, 59, 238, -784, 9845, 959, 905, 0, 0, 42, 7586, -5467984, 7586}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 19:20:55 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  7. src/reflect/all_test.go

    	tests := []struct {
    		name     string
    		value    Value
    		testFunc func(v Value) bool
    	}{
    		{"map", ValueOf(m), mapTestFn},
    		{"slice no pointer", ValueOf([]int{1, 2, 3, 4, 5}), sliceTestFn},
    		{"slice has pointer", ValueOf(s), sliceTestFn},
    		{"non-map/slice", ValueOf(1), panicTestFn},
    	}
    
    	for _, tc := range tests {
    		tc := tc
    		t.Run(tc.name, func(t *testing.T) {
    			t.Parallel()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/io/testdata/alice_in_wonderland.txt

    remark myself.'
    
      `Have you guessed the riddle yet?' the Hatter said, turning to
    Alice again.
    
      `No, I give it up,' Alice replied:  `what's the answer?'
    
      `I haven't the slightest idea,' said the Hatter.
    
      `Nor I,' said the March Hare.
    
      Alice sighed wearily.  `I think you might do something better
    with the time,' she said, `than waste it in asking riddles that
    have no answers.'
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 29 21:35:03 UTC 2012
    - 145.2K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/io/testdata/alice_in_wonderland.txt

    remark myself.'
    
      `Have you guessed the riddle yet?' the Hatter said, turning to
    Alice again.
    
      `No, I give it up,' Alice replied:  `what's the answer?'
    
      `I haven't the slightest idea,' said the Hatter.
    
      `Nor I,' said the March Hare.
    
      Alice sighed wearily.  `I think you might do something better
    with the time,' she said, `than waste it in asking riddles that
    have no answers.'
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Apr 21 02:27:51 UTC 2017
    - 145.2K bytes
    - Viewed (0)
Back to top