File tree Expand file tree Collapse file tree 1 file changed +2
-13
lines changed
Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Original file line number Diff line number Diff line change 1- use std:: path:: PathBuf ;
2-
31use uuid:: Uuid ;
42
5- use crate :: {
6- util:: { self , TempDir } ,
7- Version ,
8- } ;
3+ use crate :: { util:: TempDir , Version } ;
94
105#[ tokio:: test]
116async fn test_validate_compressed_good ( ) {
@@ -96,18 +91,12 @@ async fn test_extract_bundle() {
9691
9792 let asset_bundle = crate :: bundle:: AssetBundle :: from_file ( bundle_path) . unwrap ( ) ;
9893 asset_bundle. extract_files ( output_dir. path ( ) ) . unwrap ( ) ;
99- let output_files_dir =
100- PathBuf :: from ( output_dir. path ( ) ) . join ( util:: url_encode ( "Map_00_00.unity3d" ) ) ;
10194
10295 let version = Version :: from_manifest_file ( "example_manifest.json" ) . unwrap ( ) ;
10396 let bundle_info = version. get_bundle ( "Map_00_00.unity3d" ) . unwrap ( ) ;
10497
10598 let corrupted = bundle_info
106- . validate_uncompressed (
107- output_files_dir. to_str ( ) . unwrap ( ) ,
108- Some ( version. get_uuid ( ) ) ,
109- None ,
110- )
99+ . validate_uncompressed ( output_dir. path ( ) , Some ( version. get_uuid ( ) ) , None )
111100 . unwrap ( ) ;
112101 assert ! ( corrupted. is_empty( ) ) ;
113102}
You can’t perform that action at this time.
0 commit comments