TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Coverage Reports as a Code Reading Tool

3 pointsby JoshMcguiganalmost 6 years ago

1 comment

JoshMcguiganalmost 6 years ago
Hey HN, author here. Inspired by this great strange loop talk by Alan Shreve [0], which discusses a non-standard use for code coverage reports, I wrote a blog post about using kcov [1] and pycobertura [2] as a tool to help start understanding a new-to-you codebase.<p>As a specific example, I take the use case of understanding how keypresses are handled within Alacritty [3], a terminal emulator written in Rust.<p>[0]: <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=dSqLt8BgbRQ" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=dSqLt8BgbRQ</a><p>[1]: <a href="https:&#x2F;&#x2F;github.com&#x2F;SimonKagstrom&#x2F;kcov" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;SimonKagstrom&#x2F;kcov</a><p>[2]: <a href="https:&#x2F;&#x2F;github.com&#x2F;aconrad&#x2F;pycobertura" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;aconrad&#x2F;pycobertura</a><p>[3]: <a href="https:&#x2F;&#x2F;github.com&#x2F;jwilm&#x2F;alacritty" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;jwilm&#x2F;alacritty</a>