test(cli): verify dotenv export round trips - #189
Conversation
Signed-off-by: Akimbo92i <249540823+Akimbo92i@users.noreply.github.com>
|
Thanks for your first pull request to Sotto, and welcome. Two things that trip up newcomers:
The full guide is in CONTRIBUTING.md - a maintainer will review shortly. |
Maxerns
left a comment
There was a problem hiding this comment.
Thanks @Akimbo92i this matches the issue exactly: all the required cases are there, real control characters are correctly distinct from their literal spellings, and the full vector assertion is the right check. Test only scope, signed off, and thanks for flagging the unrelated audit fixture noise in your environment.
One follow up on that: the audit suite is green on CI and locally here, so it looks environment-specific could you paste the error output? If it shows a real portability gap I'll file it as a separate issue.
Approving CI now; once it's green I'll merge.
Summary
Add regression coverage proving that Sotto can parse its own dotenv export without changing names, values, or entry order.
Changes
$,#,=, and non-ASCII UTF-8.Testing
cargo test -p sotto-cli export::testscargo fmt --all --checkcargo clippy --workspace --all-targets -- -D warningscargo test --workspaceThe repository script suite was also attempted during independent review. Eight cargo-audit fixture tests could not generate temporary lockfiles from the offline dependency cache; this contribution changes neither manifests nor
Cargo.lock.Related Issue
Closes #187