Coverage format

hi! does anyone know the formal description of the files covmeta and covcounters?

I don’t know of any formal definition, but the comments in src/internal/coverage/defs.go seem quite extensive and explanatory.

Maybe no formal definition exists because the packages decodemeta, encodemeta, decodecounter and encodecounter provide an API for reading and writing these files.

1 Like

Thx for the explanations. But how can i import the internal api?

Internal packages and unexported identifiers cannot be imported.