{"repo":"nikolaydubina/go-cover-treemap","free":true,"listed":false,"github":"https://github.com/nikolaydubina/go-cover-treemap","clone":"git clone https://github.com/nikolaydubina/go-cover-treemap.git","description":"🎄 Go code coverage to SVG treemap","language":"Go","stars":597,"topics":["code-coverage","heatmap","treemap","command-line-tool"],"license":"MIT","category":"cli-tools","readme_excerpt":"🎄 Go cover to Treemap Useful when you have large project with lots of files and packages github.com/gohugoio/hugo ..also available in 1080x360 ..and even 1080x180 github.com/gin-gonic/gin github.com/go-chi/chi github.com/nikolaydubina/treemap github.com/nikolaydubina/go-featureprocessing Disclaimer In all examples above I run go test -coverprofile ./... . I did not do any special setup. Some projects may require additional steps to properly run test and generate full coverprofile. What you see is \"lower bound\" of coverage for those projects. All profiles generated on main branch of each project in GitHub on 2021-12-07. Contributions Welcomed! Add pretty color palettes! Add interesting examples! Reference Official Go tool to make HTML from cover profile: https://github.com/golang/go/blob/master/src/cmd/cover/html.go#L97 Official Go parser of cover profile golang.org/x/tools/cover : https://github.com/golang/tools/tree/master/cover Go SVG Treemap renderer with treemap: https://github.com/nikolaydubina/treemap Appendix A: Statements vs File for Size You can see that structure and heat changes for github.com/gohugoio/hugo . Subtrees that look bad for files no longer look as bad for statements. Lots of red boxes for files become very small and unnoticeable. This can be because they contain non-testable constructs like constants. It is more accurate to use statments, since heat is percentage of covered statements, and we compute heat by weighting sum by sizes of children. In short","default_branch":null,"files":null,"tree":[],"storefront":"/r/nikolaydubina","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/nikolaydubina/go-cover-treemap/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}