File tree 7 files changed +6
-10
lines changed
7 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ fn main() -> ExitCode {
140
140
textdomain ( env ! ( "PROJECT_NAME" ) ) . unwrap ( ) ;
141
141
bind_textdomain_codeset ( env ! ( "PROJECT_NAME" ) , "UTF-8" ) . unwrap ( ) ;
142
142
143
- let mut args = Args :: parse ( ) ;
143
+ let args = Args :: parse ( ) ;
144
144
145
145
match cmp_main ( & args) {
146
146
Ok ( x) => ExitCode :: from ( x) ,
Original file line number Diff line number Diff line change 7
7
// SPDX-License-Identifier: MIT
8
8
//
9
9
10
- use plib:: { run_test, TestPlan } ;
10
+ use plib:: testing :: { run_test, TestPlan } ;
11
11
12
12
fn run_test_helper (
13
13
args : & [ & str ] ,
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ use std::fs::File;
2
2
use std:: io:: Read ;
3
3
use std:: path:: PathBuf ;
4
4
5
- use plib:: { run_test_u8, TestPlanU8 } ;
5
+ use plib:: testing :: { run_test_u8, TestPlanU8 } ;
6
6
7
7
fn get_test_file_path ( filename : & str ) -> PathBuf {
8
8
let mut path = PathBuf :: from ( env ! ( "CARGO_MANIFEST_DIR" ) ) ;
Original file line number Diff line number Diff line change 9
9
10
10
use std:: { env, path:: PathBuf } ;
11
11
12
- use plib:: { run_test, TestPlan } ;
12
+ use plib:: testing :: { run_test, TestPlan } ;
13
13
14
14
fn file_test ( args : & [ & str ] , expected_output : & str , expected_error : & str ) {
15
15
let str_args: Vec < String > = args. iter ( ) . map ( |s| String :: from ( * s) ) . collect ( ) ;
Original file line number Diff line number Diff line change 1
1
use std:: fs:: { remove_file, File } ;
2
2
use std:: io:: Write ;
3
3
4
- use plib:: { run_test, TestPlan } ;
4
+ use plib:: testing :: { run_test, TestPlan } ;
5
5
6
6
fn run_test_find (
7
7
args : & [ & str ] ,
Original file line number Diff line number Diff line change 7
7
// SPDX-License-Identifier: MIT
8
8
//
9
9
10
- use plib:: { run_test, TestPlan } ;
10
+ use plib:: testing :: { run_test, TestPlan } ;
11
11
12
12
fn od_test ( args : & [ & str ] , test_data : & str , expected_output : & str ) {
13
13
let str_args: Vec < String > = args. iter ( ) . map ( |s| String :: from ( * s) ) . collect ( ) ;
Original file line number Diff line number Diff line change @@ -18,8 +18,4 @@ pub mod sccsfile;
18
18
pub mod testing;
19
19
pub mod utmpx;
20
20
21
- pub const PROJECT_NAME : & str = "posixutils-rs" ;
22
-
23
21
pub const BUFSZ : usize = 8 * 1024 ;
24
-
25
- pub use testing:: * ;
You can’t perform that action at this time.
0 commit comments