- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 2,876 for pzero (0.06 sec)
-
guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceEntryTester.java
@CollectionSize.Require(absent = ZERO) public void testReplaceEntry_supportedPresent() { try { assertTrue(getMap().replace(k0(), v0(), v3())); expectReplacement(entry(k0(), v3())); } catch (ClassCastException tolerated) { // for ClassToInstanceMap expectUnchanged(); } } @MapFeature.Require(SUPPORTS_PUT) @CollectionSize.Require(absent = ZERO)
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Jan 09 20:10:38 UTC 2018 - 5.3K bytes - Viewed (0) -
src/cmp/cmp.go
func isNaN[T Ordered](x T) bool { return x != x } // Or returns the first of its arguments that is not equal to the zero value. // If no argument is non-zero, it returns the zero value. func Or[T comparable](vals ...T) T { var zero T for _, val := range vals { if val != zero { return val } } return zero
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 19 16:31:02 UTC 2024 - 2K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/MapCreationTester.java
@MapFeature.Require(ALLOWS_NULL_KEYS) @CollectionSize.Require(absent = ZERO) public void testCreateWithNullKeySupported() { initMapWithNullKey(); expectContents(createArrayWithNullKey()); } @MapFeature.Require(absent = ALLOWS_NULL_KEYS) @CollectionSize.Require(absent = ZERO) public void testCreateWithNullKeyUnsupported() { try { initMapWithNullKey();
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Feb 21 16:49:06 UTC 2024 - 5.8K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveAllTester.java
@CollectionSize.Require(absent = ZERO) public void testRemoveAll_allPresent() { assertTrue( "removeAll(intersectingCollection) should return true", collection.removeAll(MinimalCollection.of(e0()))); expectMissing(e0()); } @CollectionFeature.Require(SUPPORTS_REMOVE) @CollectionSize.Require(absent = ZERO) public void testRemoveAll_somePresent() { assertTrue(
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Feb 20 17:00:05 UTC 2024 - 7.7K bytes - Viewed (0) -
test/fixedbugs/issue9083.go
package main // untyped constant const zero = 0 func main() { var x int _ = x x = make(map[int]int) // ERROR "cannot use make\(map\[int\]int\)|incompatible" x = make(map[int]int, 0) // ERROR "cannot use make\(map\[int\]int, 0\)|incompatible" x = make(map[int]int, zero) // ERROR "cannot use make\(map\[int\]int, zero\)|incompatible"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 28 14:28:33 UTC 2023 - 846 bytes - Viewed (0) -
src/runtime/sys_freebsd_riscv64.s
MOVW off+28(FP), A5 MOV $SYS_mmap, T0 ECALL BNE T0, ZERO, fail MOV A0, p+32(FP) MOV ZERO, err+40(FP) RET fail: MOV ZERO, p+32(FP) MOV A0, err+40(FP) RET // func munmap(addr uintptr, n uintptr) (err error) TEXT runtime·munmap(SB),NOSPLIT|NOFRAME,$0 MOV addr+0(FP), A0 MOV n+8(FP), A1 MOV $SYS_munmap, T0 ECALL BNE T0, ZERO, fail RET fail: WORD $0 // crash
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 06 18:49:01 UTC 2023 - 8.9K bytes - Viewed (0) -
src/syscall/asm_linux_riscv64.s
MOV a1+8(FP), A0 MOV a2+16(FP), A1 MOV a3+24(FP), A2 MOV ZERO, A3 MOV ZERO, A4 MOV ZERO, A5 MOV trap+0(FP), A7 // syscall entry ECALL MOV $-4096, T0 BLTU T0, A0, err MOV A0, r1+32(FP) // r1 MOV ZERO, err+40(FP) // errno RET err: MOV $-1, T0 MOV T0, r1+32(FP) // r1 SUB A0, ZERO, A0 MOV A0, err+40(FP) // errno RET TEXT ·rawSyscallNoError(SB),NOSPLIT,$0-48
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 07 19:11:15 UTC 2023 - 861 bytes - Viewed (0) -
test/typeparam/issue48276a.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 337 bytes - Viewed (0) -
src/cmd/compile/internal/test/testdata/gen/zeroGen.go
package main import ( "bytes" "fmt" "go/format" "log" "os" ) // This program generates tests to verify that zeroing operations // zero the data they are supposed to and clobber no adjacent values. // run as `go run zeroGen.go`. A file called zero.go // will be written into the parent directory containing the tests.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 20 02:13:02 UTC 2022 - 4.1K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/plan9/zsyscall_plan9_386.go
func fd2path(fd int, buf []byte) (err error) { var _p0 unsafe.Pointer if len(buf) > 0 { _p0 = unsafe.Pointer(&buf[0]) } else { _p0 = unsafe.Pointer(&_zero) } r0, _, e1 := Syscall(SYS_FD2PATH, uintptr(fd), uintptr(_p0), uintptr(len(buf))) if int32(r0) == -1 { err = e1 } return } // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 6.2K bytes - Viewed (0)