Home | History | Annotate | Download | only in test

Lines Matching refs:Cap

55 	const Cap = 10 // cap of slice, array
70 iconst && base == "array" && iv > Cap,
71 jconst && base == "array" && jv > Cap,
72 kconst && base == "array" && kv > Cap:
78 if iv > jv || jv > kv || kv > Cap || iv < 0 || jv < 0 || kv < 0 {
144 base, len, cap := raw[0] - arrayBase, raw[1], raw[2]
147 println(desc, "=", base, len, cap, "want panic")
150 if cap != 0 && base != uintptr(xbase) || base >= 10 || len != uintptr(xlen) || cap != uintptr(xcap) {
152 if cap == 0 {
153 println(desc, "=", base, len, cap, "want", "0-9", xlen, xcap)
155 println(desc, "=", base, len, cap, "want", xbase, xlen, xcap)