Summary
The BIP379 test harness prints All 0 vectors passed (0 skipped). and exits successfully when the input directory contains none of the known vector files. A missing directory or an incorrect working directory can therefore appear to pass in automation.
Return an error that identifies the input directory when no known vector files are found. The harness still accepts a subset of the vector files.
Testing
Built and ran the original and patched harnesses with Go 1.26.9.
| Input | Before | After |
|---|---|---|
| Missing directory | Exit 0 | Exit 1 |
| Empty directory | Exit 0 | Exit 1 |
| Directory with only an unrelated file | Exit 0 | Exit 1 |
Only edge_cases.txt |
42 passed | 42 passed |
| Full vector corpus | 81,859 passed | 81,859 passed |
| Known vector file containing an invalid Miniscript expression | Exit 1 | Exit 1 |
go vet ./... passed.