Menu

1 / 2

How I check that my Rust port still does what the Go original does

DEV Community: rust·Vayun Godara·about 2 hours ago
#0zZzgw9C
#devtorust#devto#dev#covered#test
Reading 0:00
15s threshold

cliproxy-rs is my Rust port of CLIProxyAPI, a Go proxy that puts Claude, Codex, Gemini and OpenAI-compatible APIs behind one local endpoint. The promise is that a Go user can point the Rust binary at their existing config.yaml and credential files and get the same routes and the same answers.

Trying requests by hand only tells you the requests you tried work. I wanted a coverage number I could trace back to evidence, item by item.

The checklist comes from the Go tree

A list I wrote by hand would only contain the things I remembered, so the checklist is extracted from the Go source at a pinned commit. Each item is one contract: a Go test file, a config key, a public or management route, a plugin RPC method, a CLI flag. At Go v8.0.35 that's 1,951 items.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.