- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 7,087 for Len$ (0.04 sec)
-
src/cmd/gofmt/testdata/slices1.input
_ = s[:len(s)] _ = s[:(len(s))] _ = s[:len(s)-1] _ = s[:len(b)] _ = s[:len(s):len(s)] _ = t.s[0:] _ = t.s[1:10] _ = t.s[2:len(t.s)] _ = t.s[3:(len(t.s))] _ = t.s[len(a) : len(t.s)-1] _ = t.s[0:len(b)] _ = t.s[2:len(t.s):len(t.s)] _ = t.s[:] _ = t.s[:10] _ = t.s[:len(t.s)] _ = t.s[:(len(t.s))] _ = t.s[:len(t.s)-1] _ = t.s[:len(b)] _ = t.s[:len(t.s):len(t.s)] ) func _() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 22 00:25:13 UTC 2014 - 957 bytes - Viewed (0) -
cmd/local-locker_test.go
if len(l.lockMap) != len(rResources)+len(wResources) { t.Fatalf("lockmap len, got %d, want %d + %d", len(l.lockMap), len(rResources), len(wResources)) } if len(l.lockUID) != len(rResources)+len(wResources) { t.Fatalf("lockUID len, got %d, want %d + %d", len(l.lockUID), len(rResources), len(wResources)) } // Expire a minute ago. l.expireOldLocks(-time.Minute) if len(l.lockMap) != 0 {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sun Mar 05 04:57:35 UTC 2023 - 11.8K bytes - Viewed (0) -
src/cmd/gofmt/testdata/slices1.golden
_ = s[:len(s)-1] _ = s[:len(b)] _ = s[:len(s):len(s)] _ = t.s[0:] _ = t.s[1:10] _ = t.s[2:len(t.s)] _ = t.s[3:(len(t.s))] _ = t.s[len(a) : len(t.s)-1] _ = t.s[0:len(b)] _ = t.s[2:len(t.s):len(t.s)] _ = t.s[:] _ = t.s[:10] _ = t.s[:len(t.s)] _ = t.s[:(len(t.s))] _ = t.s[:len(t.s)-1] _ = t.s[:len(b)] _ = t.s[:len(t.s):len(t.s)] ) func _() { s := s[0:] _ = s
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 22 00:25:13 UTC 2014 - 927 bytes - Viewed (0) -
test/fixedbugs/issue39505.go
package p func f() { if len([]int{})-1 < len([]int{}) { } var st struct { i int } g := func() string { return "" } h := func(string) string { return g() + g() } s, i := "", 0 st.i = len(s) i = len(h(s[i+0:i+1])) + len(s[len(s)+1:i+1]) s = s[(len(s[i+1:len(s)+1])+1):len(h(""))+1] + (s[i+1 : len([]int{})+i]) i = 1 + len([]int{len([]string{s[i+len([]int{}) : len(s)+i]})})
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 28 16:40:32 UTC 2020 - 613 bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/sets/set_generic_test.go
} if m.Len() != 0 { t.Errorf("Expected len=0 on the shared reference: %d", m.Len()) } } func TestSetClearInSeparateFunction(t *testing.T) { s := sets.Set[string]{} s.Insert("a", "b", "c") if s.Len() != 3 { t.Errorf("Expected len=3: %d", s.Len()) } clearSetAndAdd(s, "d") if s.Len() != 1 { t.Errorf("Expected len=1: %d", s.Len()) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 10 09:03:44 UTC 2023 - 7.7K bytes - Viewed (0) -
test/method3.go
package main type T []int func (t T) Len() int { return len(t) } type I interface { Len() int } func main() { var t T = T{0, 1, 2, 3, 4} var i I i = t if i.Len() != 5 { println("i.Len", i.Len()) panic("fail") } if T.Len(t) != 5 { println("T.Len", T.Len(t)) panic("fail") } if (*T).Len(&t) != 5 { println("(*T).Len", (*T).Len(&t)) panic("fail") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 23 07:47:26 UTC 2012 - 570 bytes - Viewed (0) -
src/strings/compare_test.go
} if len > 0 { cmp = Compare(sa[:len-1], sb[:len]) if cmp != -1 { t.Errorf(`CompareAshorter(%d) = %d`, len, cmp) } cmp = Compare(sa[:len], sb[:len-1]) if cmp != 1 { t.Errorf(`CompareBshorter(%d) = %d`, len, cmp) } } for k := lastLen; k < len; k++ { b[k] = a[k] - 1 cmp = Compare(unsafeString(a[:len]), unsafeString(b[:len])) if cmp != 1 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 07 01:33:55 UTC 2022 - 2.8K bytes - Viewed (0) -
src/crypto/internal/boring/aes.go
} if len(dst)+len(plaintext)+gcmTagSize < len(dst) { panic("cipher: message too large for buffer") } // Make room in dst to append plaintext+overhead. n := len(dst) for cap(dst) < n+len(plaintext)+gcmTagSize { dst = append(dst[:cap(dst)], 0) } dst = dst[:n+len(plaintext)+gcmTagSize] // Check delayed until now to make sure len(dst) is accurate. if inexactOverlap(dst[n:], plaintext) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jan 26 22:52:27 UTC 2024 - 10.2K bytes - Viewed (0) -
src/runtime/unsafe.go
} func panicunsafestringnilptr() { panic(errorString("unsafe.String: ptr is nil and len is not zero")) } // Keep this code in sync with cmd/compile/internal/walk/builtin.go:walkUnsafeSlice func unsafeslice(et *_type, ptr unsafe.Pointer, len int) { if len < 0 { panicunsafeslicelen1(getcallerpc()) } if et.Size_ == 0 { if ptr == nil && len > 0 { panicunsafeslicenilptr1(getcallerpc()) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 21:51:18 UTC 2024 - 3.1K bytes - Viewed (0) -
src/slices/slices.go
// returns 0 the result is 0 if len(s1) == len(s2), -1 if len(s1) < len(s2), // and +1 if len(s1) > len(s2). func CompareFunc[S1 ~[]E1, S2 ~[]E2, E1, E2 any](s1 S1, s2 S2, cmp func(E1, E2) int) int { for i, v1 := range s1 { if i >= len(s2) { return +1 } v2 := s2[i] if c := cmp(v1, v2); c != 0 { return c } } if len(s1) < len(s2) { return -1 } return 0 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 29 14:01:59 UTC 2024 - 13.6K bytes - Viewed (0)