- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 1,111 for negatives (0.16 sec)
-
test/fixedbugs/issue4232.go
// issue 7200 package p func f() { var a [10]int _ = a[-1] // ERROR "invalid array index -1|index out of bounds|must not be negative" _ = a[-1:] // ERROR "invalid slice index -1|index out of bounds|must not be negative" _ = a[:-1] // ERROR "invalid slice index -1|index out of bounds|must not be negative" _ = a[10] // ERROR "invalid array index 10|index .*out of bounds" _ = a[9:10] _ = a[10:10]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 11 02:26:58 UTC 2022 - 2.4K bytes - Viewed (0) -
test/fixedbugs/issue16439.go
package p var a []int = []int{1: 1} var b []int = []int{-1: 1} // ERROR "must be non-negative integer constant|index expression is negative|must not be negative" var c []int = []int{2.0: 2} var d []int = []int{-2.0: 2} // ERROR "must be non-negative integer constant|index expression is negative|must not be negative" var e []int = []int{3 + 0i: 3}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 22 17:50:13 UTC 2020 - 779 bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/options/server_run_options_test.go
JSONPatchMaxCopyBytes: 10 * 1024 * 1024, MaxRequestBodyBytes: 10 * 1024 * 1024, }, expectErr: "--max-requests-inflight can not be negative value", }, { name: "Test when MaxMutatingRequestsInFlight is negative value", testOptions: &ServerRunOptions{ AdvertiseAddress: netutils.ParseIPSloppy("192.168.10.10"),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 27 15:49:49 UTC 2023 - 10.9K bytes - Viewed (0) -
test/fixedbugs/issue8183.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 22 17:50:13 UTC 2020 - 622 bytes - Viewed (0) -
internal/bucket/lifecycle/rule_test.go
}, { // Rule with negative values for ObjectSizeGreaterThan inputXML: `<Rule> <ID>negative-obj-size-greater-than</ID> <Filter><ObjectSizeGreaterThan>-1</ObjectSizeGreaterThan></Filter> <Expiration> <Days>365</Days> </Expiration> <Status>Enabled</Status> </Rule>`, expectedErr: errXMLNotWellFormed, },
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed May 01 01:11:10 UTC 2024 - 4.9K bytes - Viewed (0) -
test/makemap.go
// license that can be found in the LICENSE file. // Ensure that typed non-integer, negative and too large // values are not accepted as size argument in make for // maps. package main type T map[int]int var sink T func main() { sink = make(T, -1) // ERROR "negative size argument in make.*|must not be negative" sink = make(T, uint64(1<<63)) // ERROR "size argument too large in make.*|overflows int"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 23 00:41:01 UTC 2021 - 1.3K bytes - Viewed (0) -
src/runtime/stubs2.go
// read calls the read system call. // It returns a non-negative number of bytes written or a negative errno value. func read(fd int32, p unsafe.Pointer, n int32) int32 func closefd(fd int32) int32 func exit(code int32) func usleep(usec uint32) //go:nosplit func usleep_no_g(usec uint32) { usleep(usec) } // write1 calls the write system call. // It returns a non-negative number of bytes written or a negative errno value. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 1.1K bytes - Viewed (0) -
test/fixedbugs/issue4085a.go
package main type T []int func main() { _ = make(T, -1) // ERROR "negative" _ = make(T, 0.5) // ERROR "constant 0.5 truncated to integer|non-integer len argument|truncated to int" _ = make(T, 1.0) // ok _ = make(T, 1<<63) // ERROR "len argument too large|overflows int" _ = make(T, 0, -1) // ERROR "negative cap|must not be negative" _ = make(T, 10, 0) // ERROR "len larger than cap|length and capacity swapped"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Dec 09 23:59:57 UTC 2020 - 604 bytes - Viewed (0) -
test/fixedbugs/issue7150.go
// issue 7150: array index out of bounds error off by one package main func main() { _ = [0]int{-1: 50} // ERROR "index must be non-negative integer constant|index expression is negative|must not be negative" _ = [0]int{0: 0} // ERROR "index 0 out of bounds \[0:0\]|out of range" _ = [0]int{5: 25} // ERROR "index 5 out of bounds \[0:0\]|out of range"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 22 17:50:13 UTC 2020 - 754 bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/intstr/intstr_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 21:48:09 UTC 2024 - 14.3K bytes - Viewed (0)