Since go 1.15 new() on CGo structs is no longer supported:
./fakelibusb_test.go:101:87: libusbContext can't be allocated in Go; it is incomplete (or unallocatable)
./fakelibusb_test.go:131:10: libusbDevHandle can't be allocated in Go; it is incomplete (or unallocatable)
Coverage remained the same at 79.171% when pulling c08e08200ffdf21e7d48ad2eaee325ad6ece86f4 on no-new-for-cgo-structs into e4c3f66a1571a02d7cae859fa0be08edcb940541 on master.
Since go 1.15 new() on CGo structs is no longer supported:
./fakelibusb_test.go:101:87: libusbContext can't be allocated in Go; it is incomplete (or unallocatable) ./fakelibusb_test.go:131:10: libusbDevHandle can't be allocated in Go; it is incomplete (or unallocatable)
Use CGo malloc to obtain unique pointers.