- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for noCmp (0.14 sec)
-
test/interface/noeq.go
// that cannot be compared for equality. package main func main() { cmp(1) var ( m map[int]int s struct{ x []int } f func() ) noCmp(m) noCmp(s) noCmp(f) } func cmp(x interface{}) bool { return x == x } func noCmp(x interface{}) { shouldPanic(func() { cmp(x) }) } func shouldPanic(f func()) { defer func() { if recover() == nil { panic("function should panic")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 641 bytes - Viewed (0) -
pkg/volume/emptydir/empty_dir_test.go
path: "/mnt/hugepages-1Gi", mounter: mounter, shouldFail: false, expectedResult: resource.MustParse("1Gi"), }, "Invalid: mount point doesn't exist": { path: "/mnt/nomp", mounter: mounter, shouldFail: true, }, "Invalid: no pagesize option": { path: "/mnt/noopt", mounter: mounter, shouldFail: true, },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 21 10:18:16 UTC 2024 - 30.7K bytes - Viewed (0)