- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 278 for v$1 (0.03 sec)
-
src/math/const_test.go
} } func TestMaxInt(t *testing.T) { if v := int(MaxInt); v+1 != MinInt { t.Errorf("MaxInt should wrap around to MinInt: %d", v+1) } if v := int8(MaxInt8); v+1 != MinInt8 { t.Errorf("MaxInt8 should wrap around to MinInt8: %d", v+1) } if v := int16(MaxInt16); v+1 != MinInt16 { t.Errorf("MaxInt16 should wrap around to MinInt16: %d", v+1) } if v := int32(MaxInt32); v+1 != MinInt32 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 03 22:44:33 UTC 2021 - 1.3K bytes - Viewed (0) -
test/bigmap.go
cmp(m[2], seq(2, 9)) cmp(m[3], seq(3, 17)) { type T [1]byte type V [1]byte m := make(map[T]V) m[T{}] = V{1} m[T{1}] = V{2} if x, y := m[T{}][0], m[T{1}][0]; x != 1 || y != 2 { println(x, y) panic("bad map") } } { type T [100]byte type V [1]byte m := make(map[T]V) m[T{}] = V{1} m[T{1}] = V{2} if x, y := m[T{}][0], m[T{1}][0]; x != 1 || y != 2 { println(x, y)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 25 02:41:07 UTC 2012 - 2.5K bytes - Viewed (0) -
src/runtime/race/testdata/time_test.go
"time" ) func TestNoRaceAfterFunc(_ *testing.T) { v := 0 _ = v c := make(chan int) f := func() { v = 1 c <- 0 } v = 2 time.AfterFunc(1, f) <-c v = 3 } func TestNoRaceAfterFuncReset(_ *testing.T) { v := 0 _ = v c := make(chan int) f := func() { v = 1 c <- 0 } t := time.AfterFunc(time.Hour, f) t.Stop() v = 2 t.Reset(1) <-c v = 3 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 08 22:34:15 UTC 2024 - 1.3K bytes - Viewed (0) -
src/crypto/subtle/constant_time.go
for i := 0; i < len(x); i++ { v |= x[i] ^ y[i] } return ConstantTimeByteEq(v, 0) } // ConstantTimeSelect returns x if v == 1 and y if v == 0. // Its behavior is undefined if v takes any other value. func ConstantTimeSelect(v, x, y int) int { return ^(v-1)&x | (v-1)&y } // ConstantTimeByteEq returns 1 if x == y and 0 otherwise. func ConstantTimeByteEq(x, y uint8) int { return int((uint32(x^y) - 1) >> 31) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 05 01:54:27 UTC 2022 - 1.8K bytes - Viewed (0) -
test/closure2.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 06 18:34:24 UTC 2023 - 1.9K bytes - Viewed (0) -
pilot/pkg/security/authz/matcher/header.go
Name: k, HeaderMatchSpecifier: &routepb.HeaderMatcher_StringMatch{ StringMatch: StringMatcherSuffix(v[1:], false), }, } } else if strings.HasSuffix(v, "*") { return &routepb.HeaderMatcher{ Name: k, HeaderMatchSpecifier: &routepb.HeaderMatcher_StringMatch{ StringMatch: StringMatcherPrefix(v[:len(v)-1], false), }, } } return &routepb.HeaderMatcher{ Name: k,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Aug 17 22:42:11 UTC 2023 - 3.7K bytes - Viewed (0) -
tests/gorm_test.go
t.Fatalf("rows affected expects: %v, got %v", 1, results.RowsAffected) } else if u1.ID == 0 { t.Fatalf("ID expects : not equal 0, got %v", u1.ID) } got := user{} results := DB.First(&got, "id = ?", u1.ID) if results.Error != nil { t.Fatalf("errors happened on first: %v", results.Error) } else if results.RowsAffected != 1 { t.Fatalf("rows affected expects: %v, got %v", 1, results.RowsAffected)
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Thu Jun 01 07:22:21 UTC 2023 - 3.3K bytes - Viewed (0) -
src/net/http/cookie_test.go
err error }{ { line: "Cookie-1=v$1", cookies: []*Cookie{{Name: "Cookie-1", Value: "v$1"}}, }, { line: "Cookie-1=v$1;c2=v2", cookies: []*Cookie{{Name: "Cookie-1", Value: "v$1"}, {Name: "c2", Value: "v2"}}, }, { line: `Cookie-1="v$1";c2="v2"`, cookies: []*Cookie{{Name: "Cookie-1", Value: "v$1", Quoted: true}, {Name: "c2", Value: "v2", Quoted: true}}, }, {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 18:33:05 UTC 2024 - 26.2K bytes - Viewed (0) -
test/fixedbugs/bug401.go
cplx() complex128 } func main() { var t T if v := real(t.cplx()); v != 1 { panic("not-inlined complex call failed") } _ = imag(t.cplx()) _ = real(t.cplx2()) if v := imag(t.cplx2()); v != 1 { panic("potentially inlined complex call failed") } var i I i = t if v := real(i.cplx()); v != 1 { panic("potentially inlined complex call failed") } _ = imag(i.cplx())
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 740 bytes - Viewed (0) -
src/runtime/race/testdata/chan_test.go
v := 0 _ = v c := make(chan int) go func() { v = 1 c <- 0 }() <-c v = 2 } func TestNoRaceChanSyncRev(t *testing.T) { v := 0 _ = v c := make(chan int) go func() { c <- 0 v = 2 }() v = 1 <-c } func TestNoRaceChanAsync(t *testing.T) { v := 0 _ = v c := make(chan int, 10) go func() { v = 1 c <- 0 }() <-c v = 2 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jul 18 19:55:29 UTC 2023 - 11K bytes - Viewed (0)