You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ go test -c -cover runtime
# runtime
/var/folders/00/0zkq0000h01000cxqpysvccm003y_w/T/go-build973521540/runtime/_test/_obj_test/cgocall.go:152: args escapes to heap, not allowed in runtime.
/var/folders/00/0zkq0000h01000cxqpysvccm003y_w/T/go-build973521540/runtime/_test/_obj_test/chan.go:95: t escapes to heap, not allowed in runtime.
/var/folders/00/0zkq0000h01000cxqpysvccm003y_w/T/go-build973521540/runtime/_test/_obj_test/chan.go:312: c escapes to heap, not allowed in runtime.
/var/folders/00/0zkq0000h01000cxqpysvccm003y_w/T/go-build973521540/runtime/_test/_obj_test/chan.go:635: t escapes to heap, not allowed in runtime.
/var/folders/00/0zkq0000h01000cxqpysvccm003y_w/T/go-build973521540/runtime/_test/_obj_test/chan.go:653: t escapes to heap, not allowed in runtime.
/var/folders/00/0zkq0000h01000cxqpysvccm003y_w/T/go-build973521540/runtime/_test/_obj_test/env_posix.go:40: arg escapes to heap, not allowed in runtime.
/var/folders/00/0zkq0000h01000cxqpysvccm003y_w/T/go-build973521540/runtime/_test/_obj_test/env_posix.go:51: arg escapes to heap, not allowed in runtime.
/var/folders/00/0zkq0000h01000cxqpysvccm003y_w/T/go-build973521540/runtime/_test/_obj_test/extern.go:10: rpc escapes to heap, not allowed in runtime.
/var/folders/00/0zkq0000h01000cxqpysvccm003y_w/T/go-build973521540/runtime/_test/_obj_test/hashmap.go:218: t escapes to heap, not allowed in runtime.
/var/folders/00/0zkq0000h01000cxqpysvccm003y_w/T/go-build973521540/runtime/_test/_obj_test/hashmap.go:287: t escapes to heap, not allowed in runtime.
/var/folders/00/0zkq0000h01000cxqpysvccm003y_w/T/go-build973521540/runtime/_test/_obj_test/hashmap.go:287: too many errors
The problem is that cover strips all comments, including important //go:noescape/nosplit/linkname comments that affect behavior. We have such comments in runtime, bytes, crypto/md5, syscall and maybe other packages.
The problem is that cover strips all comments, including important //go:noescape/nosplit/linkname comments that affect behavior. We have such comments in runtime, bytes, crypto/md5, syscall and maybe other packages.
cover must not strip these comments.
FWIW, here is a patch that works for me:
The text was updated successfully, but these errors were encountered: