Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 375 for Slice3 (0.92 sec)

  1. src/path/filepath/match_test.go

    	for _, m := range test.matches {
    		want = append(want, root+FromSlash(m))
    	}
    	slices.Sort(want)
    	return want
    }
    
    func (test *globTest) globAbs(root, rootPattern string) error {
    	p := FromSlash(rootPattern + `\` + test.pattern)
    	have, err := Glob(p)
    	if err != nil {
    		return err
    	}
    	slices.Sort(have)
    	want := test.buildWant(root + `\`)
    	if strings.Join(want, "_") == strings.Join(have, "_") {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 16:38:19 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  2. pilot/pkg/serviceregistry/kube/controller/ambient/services.go

    	"istio.io/istio/pkg/config"
    	"istio.io/istio/pkg/config/constants"
    	"istio.io/istio/pkg/config/schema/kind"
    	"istio.io/istio/pkg/kube/krt"
    	"istio.io/istio/pkg/log"
    	"istio.io/istio/pkg/slices"
    	"istio.io/istio/pkg/workloadapi"
    )
    
    func (a *index) ServicesCollection(
    	Services krt.Collection[*v1.Service],
    	ServiceEntries krt.Collection[*networkingclient.ServiceEntry],
    	Waypoints krt.Collection[Waypoint],
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 05 12:29:55 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  3. pkg/kube/krt/util.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package krt
    
    import (
    	"istio.io/istio/pkg/slices"
    )
    
    // BatchedEventFilter allows an event handler to have alternative event suppression mechanics to filter out unnecessary events.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 11 08:27:29 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  4. src/crypto/tls/handshake_messages.go

    	x[5] = uint8(certificateOctets >> 8)
    	x[6] = uint8(certificateOctets)
    
    	y := x[7:]
    	for _, slice := range m.certificates {
    		y[0] = uint8(len(slice) >> 16)
    		y[1] = uint8(len(slice) >> 8)
    		y[2] = uint8(len(slice))
    		copy(y[3:], slice)
    		y = y[3+len(slice):]
    	}
    
    	return x, nil
    }
    
    func (m *certificateMsg) unmarshal(data []byte) bool {
    	if len(data) < 7 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 51.8K bytes
    - Viewed (0)
  5. platforms/core-runtime/daemon-protocol/src/test/groovy/org/gradle/launcher/daemon/diagnostics/DaemonLogFileUtilsTest.groovy

                line1
                line2
                line3""")
    
            expect:
            DaemonLogFileUtils.tail(logFile, 1) == "line3"
        }
    
        def "input-ending eoln is ignored"() {
            given:
            def logFile = log("""\
                line1
                line2
                line3
            """)
    
            expect:
            DaemonLogFileUtils.tail(logFile, 1) == "line3"
        }
    
        def "returns at most n lines"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 10:50:51 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  6. pkg/monitoring/derived_gauge.go

    package monitoring
    
    import (
    	"context"
    	"sync"
    
    	"go.opentelemetry.io/otel/attribute"
    	api "go.opentelemetry.io/otel/metric"
    
    	"istio.io/istio/pkg/log"
    	"istio.io/istio/pkg/slices"
    )
    
    type derivedGauge struct {
    	mu    sync.RWMutex
    	attrs map[attribute.Set]func() float64
    
    	name string
    }
    
    var _ DerivedMetric = &derivedGauge{}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 17 20:25:52 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  7. src/io/fs/glob_test.go

    // Copyright 2020 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 fs_test
    
    import (
    	. "io/fs"
    	"os"
    	"path"
    	"slices"
    	"strings"
    	"testing"
    )
    
    var globTests = []struct {
    	fs              FS
    	pattern, result string
    }{
    	{os.DirFS("."), "glob.go", "glob.go"},
    	{os.DirFS("."), "gl?b.go", "glob.go"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:36:52 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  8. pkg/slices/slices_test.go

    }
    
    func TestEqual(t *testing.T) {
    	tests := []struct {
    		name string
    		s1   []int
    		s2   []int
    		want bool
    	}{
    		{"Empty Slices", []int{}, []int{}, true},
    		{"Equal Slices", []int{1, 2, 3}, []int{1, 2, 3}, true},
    		{"Unequal Slices", []int{1, 2, 3}, []int{3, 2, 1}, false},
    		{"One Empty Slice", []int{}, []int{1, 2, 3}, false},
    	}
    
    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    			got := Equal(tt.s1, tt.s2)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  9. src/expvar/expvar.go

    func (v *Map) addKey(key string) {
    	v.keysMu.Lock()
    	defer v.keysMu.Unlock()
    	// Using insertion sort to place key into the already-sorted v.keys.
    	i, found := slices.BinarySearch(v.keys, key)
    	if found {
    		return
    	}
    	v.keys = slices.Insert(v.keys, i, key)
    }
    
    func (v *Map) Get(key string) Var {
    	i, _ := v.m.Load(key)
    	av, _ := i.(Var)
    	return av
    }
    
    func (v *Map) Set(key string, av Var) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 21:32:11 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  10. src/regexp/onepass_test.go

    	for ix, test := range runeMergeTests {
    		merged, next := mergeRuneSets(&test.left, &test.right, test.leftPC, test.rightPC)
    		if !slices.Equal(merged, test.merged) {
    			t.Errorf("mergeRuneSet :%d (%v, %v) merged\n have\n%v\nwant\n%v", ix, test.left, test.right, merged, test.merged)
    		}
    		if !slices.Equal(next, test.next) {
    			t.Errorf("mergeRuneSet :%d(%v, %v) next\n have\n%v\nwant\n%v", ix, test.left, test.right, next, test.next)
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:36:03 UTC 2024
    - 4.6K bytes
    - Viewed (0)
Back to top