rust-lang / rust-lang/stdarch

cleanup: Move cfg(tests) modules to its own files

Open
#1,029 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
694
Forks
336
Avg merge
5d 14h
Merged PRs (30d)
9

Description

The tests mod in stdarch is really big. We should split them into their own files instead of inline them into other mods.

This has been discussed for libstd in https://github.com/rust-lang/compiler-team/issues/344.
Also see some other tricks in https://matklad.github.io/2021/02/27/delete-cargo-integration-tests.html.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the large inline cfg(test) modules in stdarch and review the linked libstd discussion and blog post for the intended file-splitting approach. Done means the test modules have their own files instead of being inline in other modules, with the stdarch test suite still passing.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
testing-qa
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.