I am trying to create a coverage instrumented binary.
Referring to - Coverage profiling support for integration tests - The Go Programming Language
The example command used here is as below and is creating an exe file-
go build -cover -o myprogram.exe myprogram.go
I was curious if tar/ tgz instrumented binaries could also be created using the -cover flag. Though I tried to change the extension of the file and run the command but ended up getting corrupt files.
My end goal is to create the binary and replace the kubernetes pods in the application to further run automated tests.
Go Version - 1.21.4