Let's consider that the output of cargo test -- --list
contains the following test list:
[...]
src/mod1.rs - X::foo() (line 10): test
src/mod1.rs - X::bar() (line 20): test
src/mod2.rs - X::foo() (line 10): test
src/mod2.rs - X::bar() (line 20): test
What command should I run to only execute the test src/mod1.rs - X::foo() (line 10): test
?