It worked. In my last try the multiple packages that I generated were not
comma separated, once I fixed that everything worked fine.
On Friday, 4 November 2016 14:50:00 UTC+5:30, Vivekanand SV wrote:
>
> I tried few things and the following worked for me
>
> *go test -c -coverpkg=. -covermode=co
I tried few things and the following worked for me
*go test -c -coverpkg=. -covermode=count -o=test_binary*
*test_binary -test.coverprofile c.out*
But the the same thing fails when there are more than one package passed to
coverpkg flag with the error "*cannot use -c flag with multiple packages*