- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 378 for Slice3 (0.08 sec)
-
pilot/pkg/trustbundle/trustbundle_test.go
"crypto/x509" "fmt" "net/http" "net/http/httptest" "os" "path" "sort" "testing" "time" meshconfig "istio.io/api/mesh/v1alpha1" "istio.io/istio/pkg/config/mesh" "istio.io/istio/pkg/slices" "istio.io/istio/pkg/test" "istio.io/istio/pkg/test/env" "istio.io/istio/pkg/test/util/retry" ) func readCertFromFile(filename string) string { csrBytes, err := os.ReadFile(filename) if err != nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 21:07:03 UTC 2024 - 13.1K bytes - Viewed (0) -
pkg/kube/krt/krttest/helpers.go
// See the License for the specific language governing permissions and // limitations under the License. package krttest import ( "fmt" "istio.io/istio/pkg/kube/krt" "istio.io/istio/pkg/slices" "istio.io/istio/pkg/test" "istio.io/istio/pkg/test/util/assert" ) type MockCollection struct { t test.Failer inputs []any }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 21 19:33:01 UTC 2024 - 2.1K bytes - Viewed (0) -
istioctl/pkg/writer/ztunnel/configdump/connections.go
"sigs.k8s.io/yaml" "istio.io/istio/pkg/maps" "istio.io/istio/pkg/slices" ) type ConnectionsFilter struct { Namespace string Direction string Raw bool } func (c *ConfigWriter) PrintConnectionsDump(filter ConnectionsFilter, outputFormat string) error { d := c.ztunnelDump workloads := maps.Values(d.WorkloadState) workloads = slices.SortFunc(workloads, func(a, b WorkloadState) int {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 31 21:45:11 UTC 2024 - 3.5K bytes - Viewed (0) -
src/net/http/routing_index_test.go
want := trueConflicts(pat, patterns[:i]) if !slices.Equal(got, want) { t.Fatalf("%q:\ngot %q\nwant %q", pat, got, want) } idx.addPattern(pat) } } func trueConflicts(pat *pattern, pats []*pattern) []string { var s []string for _, p := range pats { if pat.conflictsWith(p) { s = append(s, p.String()) } } slices.Sort(s) return s }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 21 22:14:00 UTC 2024 - 4K bytes - Viewed (0) -
src/internal/types/testdata/fixedbugs/issue66064.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 14 23:12:40 UTC 2024 - 309 bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/ByteSourceTester.java
public void testSlice_constrainedRange() throws IOException { long size = source.read().length; if (size >= 2) { ByteSource sliced = source.slice(1, size - 2); assertEquals(size - 2, sliced.read().length); ByteSource resliced = sliced.slice(0, size - 1); assertTrue(sliced.contentEquals(resliced)); } } private void assertExpectedBytes(byte[] readBytes) {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 8.6K bytes - Viewed (0) -
src/sort/sort.go
// Strings sorts a slice of strings in increasing order. // // Note: as of Go 1.22, this function simply calls [slices.Sort]. func Strings(x []string) { stringsImpl(x) } // IntsAreSorted reports whether the slice x is sorted in increasing order. // // Note: as of Go 1.22, this function simply calls [slices.IsSorted]. func IntsAreSorted(x []int) bool { return intsAreSortedImpl(x) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 28 16:40:32 UTC 2023 - 10.1K bytes - Viewed (0) -
common/config/.golangci.yml
- pkg: maps desc: "do not use maps; use istio.io/istio/pkg/maps instead" - pkg: golang.org/x/exp/slices desc: "do not use golang.org/x/exp/slices; use istio.io/istio/pkg/slices instead" - pkg: slices desc: "do not use slices; use istio.io/istio/pkg/slices instead" DenyOperatorAndIstioctl: files: # Tests can do anything - "!$test"
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Jun 04 20:03:06 UTC 2024 - 11.3K bytes - Viewed (0) -
src/cmd/go/internal/vcweb/git.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package vcweb import ( "log" "net/http" "net/http/cgi" "os/exec" "runtime" "slices" "sync" ) type gitHandler struct { once sync.Once gitPath string gitPathErr error } func (h *gitHandler) Available() bool { if runtime.GOOS == "plan9" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Dec 14 19:46:23 UTC 2023 - 1.8K bytes - Viewed (0) -
src/log/slog/internal/benchmarks/handlers_test.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package benchmarks import ( "bytes" "context" "log/slog" "slices" "testing" ) func TestHandlers(t *testing.T) { ctx := context.Background() r := slog.NewRecord(testTime, slog.LevelInfo, testMessage, 0) r.AddAttrs(testAttrs...) t.Run("text", func(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 17 23:34:11 UTC 2023 - 1.1K bytes - Viewed (0)