Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allow importing all items of a module with * #6301

Open
2 tasks
enitrat opened this issue Aug 28, 2024 · 0 comments
Open
2 tasks

feat: allow importing all items of a module with * #6301

enitrat opened this issue Aug 28, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@enitrat
Copy link
Contributor

enitrat commented Aug 28, 2024

Feature Request

Describe the Feature Request

Allow this feature:

fn f(){}
fn h(){}

#[cfg(test)]
mod tests {
    use super::*;

    #[test]
    fn test_f(){
       f()    
    }
 }

This would reduce a lot the amount of LOC required to simply have all the required items to perform unit tests. The requirement to handle manually all imports to day is a deterrent to implement a proper module-based structure for unit tests

Describe Preferred Solution

Describe Alternatives

Related Code

Additional Context

If the feature request is approved, would you be willing to submit a PR?
(Help can be provided if you need assistance submitting a PR)

  • Yes
  • No
@enitrat enitrat added the enhancement New feature or request label Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant