cairo icon indicating copy to clipboard operation
cairo copied to clipboard

feat: allow importing all items of a module with *

Open enitrat opened this issue 1 year ago • 0 comments

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 avatar Aug 28 '24 08:08 enitrat