Skip to content

Commit 004886c

Browse files
committed
fix: tests for readme_modules_headers_renew.rs
1 parent 4f99916 commit 004886c

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

module/move/willbe/tests/asset/single_module/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ members = [
55
]
66

77
[workspace.metadata]
8+
workspace_name = "single_module"
89
master_branch = "test_branch"
910
project_name = "test"
1011
repo_url = "https://github.com/Username/test"

module/move/willbe/tests/inc/action_tests/readme_modules_headers_renew.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ fn tags_should_stay()
3232
let temp = arrange( "single_module" );
3333

3434
// Act
35-
_ = action::main_header::action( CrateDir::try_from( temp.path() ).unwrap() ).unwrap();
35+
_ = action::readme_modules_headers_renew::readme_modules_headers_renew( CrateDir::try_from( temp.path() ).unwrap() ).unwrap();
3636
// _ = action::main_header::action( CrateDir::try_from( temp.path() ).unwrap() ).unwrap();
3737

3838
let mut file = std::fs::File::open( temp.path().join( "test_module" ).join( "Readme.md" ) ).unwrap();
@@ -53,7 +53,7 @@ fn default_stability()
5353
let temp = arrange( "single_module" );
5454

5555
// Act
56-
_ = action::main_header::action( CrateDir::try_from( temp.path() ).unwrap() ).unwrap();
56+
_ = action::readme_modules_headers_renew::readme_modules_headers_renew( CrateDir::try_from( temp.path() ).unwrap() ).unwrap();
5757
let mut file = std::fs::File::open( temp.path().join( "test_module" ).join( "Readme.md" ) ).unwrap();
5858

5959
let mut actual = String::new();
@@ -72,7 +72,7 @@ fn docs()
7272
let temp = arrange( "single_module" );
7373

7474
// Act
75-
_ = action::main_header::action( CrateDir::try_from( temp.path() ).unwrap() ).unwrap();
75+
_ = action::readme_modules_headers_renew::readme_modules_headers_renew( CrateDir::try_from( temp.path() ).unwrap() ).unwrap();
7676
let mut file = std::fs::File::open( temp.path().join( "test_module" ).join( "Readme.md" ) ).unwrap();
7777

7878
let mut actual = String::new();
@@ -90,7 +90,7 @@ fn no_gitpod()
9090
let temp = arrange("single_module");
9191

9292
// Act
93-
_ = action::main_header::action( CrateDir::try_from( temp.path() ).unwrap() ).unwrap();
93+
_ = action::readme_modules_headers_renew::readme_modules_headers_renew( CrateDir::try_from( temp.path() ).unwrap() ).unwrap();
9494
let mut file = std::fs::File::open(temp.path().join("test_module").join("Readme.md")).unwrap();
9595

9696
let mut actual = String::new();
@@ -107,7 +107,7 @@ fn with_gitpod()
107107
let temp = arrange( "single_module_with_example" );
108108

109109
// Act
110-
_ = action::main_header::action( CrateDir::try_from( temp.path() ).unwrap() ).unwrap();
110+
_ = action::readme_modules_headers_renew::readme_modules_headers_renew( CrateDir::try_from( temp.path() ).unwrap() ).unwrap();
111111
let mut file = std::fs::File::open( temp.path().join( "module" ).join( "test_module" ).join( "Readme.md" ) ).unwrap();
112112

113113
let mut actual = String::new();
@@ -125,7 +125,7 @@ fn discord()
125125
let temp = arrange( "single_module" );
126126

127127
// Act
128-
_ = action::main_header::action( CrateDir::try_from( temp.path() ).unwrap() ).unwrap();
128+
_ = action::readme_modules_headers_renew::readme_modules_headers_renew(CrateDir::try_from(temp.path()).unwrap()).unwrap();
129129
let mut file = std::fs::File::open( temp.path().join( "test_module" ).join( "Readme.md" ) ).unwrap();
130130

131131
let mut actual = String::new();
@@ -143,7 +143,7 @@ fn status()
143143
let temp = arrange( "single_module" );
144144

145145
// Act
146-
_ = action::main_header::action( CrateDir::try_from( temp.path() ).unwrap() ).unwrap();
146+
_ = action::readme_modules_headers_renew::readme_modules_headers_renew( CrateDir::try_from( temp.path() ).unwrap() ).unwrap();
147147
let mut file = std::fs::File::open( temp.path().join( "test_module" ).join( "Readme.md" ) ).unwrap();
148148

149149
let mut actual = String::new();
@@ -161,13 +161,13 @@ fn idempotency()
161161
let temp = arrange( "single_module" );
162162

163163
// Act
164-
_ = action::main_header::action( CrateDir::try_from( temp.path() ).unwrap() ).unwrap();
164+
_ = action::readme_modules_headers_renew::readme_modules_headers_renew( CrateDir::try_from( temp.path() ).unwrap() ).unwrap();
165165
let mut file = std::fs::File::open( temp.path().join( "test_module" ).join( "Readme.md" ) ).unwrap();
166166
let mut actual1 = String::new();
167167
_ = file.read_to_string( &mut actual1 ).unwrap();
168168
drop( file );
169169

170-
_ = action::main_header::action( CrateDir::try_from( temp.path() ).unwrap() ).unwrap();
170+
_ = action::readme_modules_headers_renew::readme_modules_headers_renew( CrateDir::try_from( temp.path() ).unwrap() ).unwrap();
171171
let mut file = std::fs::File::open( temp.path().join( "test_module" ).join( "Readme.md" ) ).unwrap();
172172
let mut actual2 = String::new();
173173
_ = file.read_to_string( &mut actual2 ).unwrap();
@@ -182,7 +182,7 @@ fn with_many_members_and_varius_config()
182182
{
183183
let temp = arrange( "three_packages" );
184184

185-
_ = action::main_header::action( CrateDir::try_from( temp.path() ).unwrap() ).unwrap();
185+
_ = action::readme_modules_headers_renew::readme_modules_headers_renew( CrateDir::try_from( temp.path() ).unwrap() ).unwrap();
186186

187187
let mut file_b = std::fs::File::open( temp.path().join( "b" ).join( "Readme.md" ) ).unwrap();
188188
let mut file_c = std::fs::File::open( temp.path().join( "c" ).join( "Readme.md" ) ).unwrap();

0 commit comments

Comments
 (0)