Convert values between units of measurement: length, weight, temperature and data size.
go build ./cmd/unitconv
./unitconv convert 1 km m
./unitconv convert -c temperature 0 c f
./unitconv table data mb
go test ./...
This repository was generated by an AI coding assistant (Claude, via Claude Code) in a single
session with no manual cleanup. It exists as a benchmark target for MuckLedger, a reproducible
leaderboard for code-cleanup tools. Unlike some other MuckLedger targets, no attempt was made to make
every function reachable from main or from a test: the internal/units package includes a full set
of named per-unit convenience functions (MetersToFeet, KgToLbs, BytesToKB, and so on) written
alongside the generic Convert engine that the CLI and tests actually use. Whichever of those
convenience functions never got wired up or tested is genuine, naturally occurring dead code, not
something injected afterward.
The go test suite is real and covers the CLI's and the generic engine's actual behaviour; it is the
oracle MuckLedger uses to decide whether a cleanup tool broke anything.
Licensed under the MIT License (see LICENSE).
0 comments
log in to comment.