lib: move strconv tests into the package dir (Go layout)

lib/strconv/test/ was the last _test layout deviating from Go's
in-package shape (src/bytes/bytes_test.go declares bytes_test in the
package dir). Its rationale — `import strconv` file-hitting the
sibling strconv.ww — dissolved when #98 made directory packages win
over same-named files on any search entry. libbyteid re-paths the
three fx entries and drops the covered() carve-out: the completeness
scan now keys lib/strconv through the fixtures' dirname. Walk line
flips to "ok lib/strconv [strconv_test, external]".
This commit is contained in:
2026-08-08 20:21:43 +09:00
parent 51cb8e7d64
commit 0cf9643be8
4 changed files with 5 additions and 25 deletions

View File

@@ -124,9 +124,9 @@ fn corpus() []ent = {
append(es, pr("package main;\nimport os.exec;\nfn main() i32 = { return 0; };\n",
"package exec;", "lib/os/exec"));
append(es, fx("lib/regex/regex_test.ww"));
append(es, fx("lib/strconv/test/ftos_test.ww"));
append(es, fx("lib/strconv/test/stof_test.ww"));
append(es, fx("lib/strconv/test/int_test.ww"));
append(es, fx("lib/strconv/ftos_test.ww"));
append(es, fx("lib/strconv/stof_test.ww"));
append(es, fx("lib/strconv/int_test.ww"));
// strings' families share helpers_test.ww (B3 split) — the
// single-file roots dissolved; the composed package is the root.
append(es, dx("lib/strings"));
@@ -188,8 +188,6 @@ fn covered() []str = {
append(cs, "lib/math");
append(cs, "lib/rt");
append(cs, "lib/types");
// module body dragged into the lib/strconv/test fixtures
append(cs, "lib/strconv");
// #17: the @test runner is AUTO-BUNDLED into every -T sep build,
// so every @test fixture byte-ids it cs/ww; 911_attest_record
// also compares it directly. It has no _test.ww of its own.