Company
Date Published
Author
Miki Pokryvailo
Word count
1087
Language
English
Hacker News points
2

Summary

Bincover is a tool that measures the coverage of Go binary applications. It provides a simple and flexible API to generate an "instrumented binary" that can measure its own coverage, run it with user-specified command line arguments and environment variables, and merge coverage profiles generated from multiple test runs. The main idea behind measuring Go binary coverage is to create a file with a "fake" test that runs the main method of the application, but this approach has limitations such as not being able to pass in command line arguments or handling panics. Bincover handles these problems while requiring no additional lines of code to do so. It can be used to measure the coverage of actual Go applications by creating a temporary args file and setting an -args-file flag, parsing the arguments, executing the binary, truncating and deleting the file, and merging temporary coverage files into a single file. Bincover is now available on GitHub and Confluent Platform 7.9 has been released with its latest key features including Oracle XStream CDC Connector, Client-Side Field Level Encryption, Confluent for VS Code, and more.