nedbat / coveragepy

The code coverage tool for Python
https://coverage.readthedocs.io
Apache License 2.0
2.9k stars 419 forks source link

how to write a parser for raw coverage file (.coverage) and a json reporter in golang ? #1806

Closed AkashKumar7902 closed 2 days ago

AkashKumar7902 commented 5 days ago

Is the current parser solely depends on raw coverage file to get every possible coverage information ?

nedbat commented 5 days ago

Can you say more about why you want to re-write coverage json in Golang? What is missing from it?

AkashKumar7902 commented 2 days ago

I initially was downloading python, pip and coverage in dockerfile of a go project which increased the image size, so I was hoping that if the parser can be written in go, i would not need to download these things. But recently i found coverage package in apt, which is increasing negligible size of image. This is not required now.