@@ -329,24 +329,19 @@ mod tests {
329329 }
330330
331331 fn state_with_active_plugins < T : Into < PathBuf > > ( data_path : T , active_plugins : & [ & str ] ) -> State {
332- state_with_data ( data_path, Vec :: default ( ) , "" , active_plugins, & [ ] )
333- }
334-
335- fn state_with_loot_path < T : Into < PathBuf > > ( data_path : T , loot_path : & str ) -> State {
336- state_with_data ( data_path, Vec :: default ( ) , loot_path, & [ ] , & [ ] )
332+ state_with_data ( data_path, Vec :: default ( ) , active_plugins, & [ ] )
337333 }
338334
339335 fn state_with_versions < T : Into < PathBuf > > (
340336 data_path : T ,
341337 plugin_versions : & [ ( & str , & str ) ] ,
342338 ) -> State {
343- state_with_data ( data_path, Vec :: default ( ) , "" , & [ ] , plugin_versions)
339+ state_with_data ( data_path, Vec :: default ( ) , & [ ] , plugin_versions)
344340 }
345341
346342 fn state_with_data < T : Into < PathBuf > > (
347343 data_path : T ,
348344 additional_data_paths : Vec < T > ,
349- loot_path : & str ,
350345 active_plugins : & [ & str ] ,
351346 plugin_versions : & [ ( & str , & str ) ] ,
352347 ) -> State {
@@ -370,7 +365,6 @@ mod tests {
370365 game_type : GameType :: Oblivion ,
371366 data_path,
372367 additional_data_paths,
373- loot_path : loot_path. into ( ) ,
374368 active_plugins : active_plugins
375369 . into_iter ( )
376370 . map ( |s| s. to_lowercase ( ) )
@@ -425,24 +419,6 @@ mod tests {
425419 assert ! ( function. eval( & state) . unwrap( ) ) ;
426420 }
427421
428- #[ test]
429- #[ allow( non_snake_case) ]
430- fn function_file_path_eval_should_be_true_if_given_LOOT_and_loot_path_exists ( ) {
431- let function = Function :: FilePath ( PathBuf :: from ( "LOOT" ) ) ;
432- let state = state_with_loot_path ( "." , "Cargo.toml" ) ;
433-
434- assert ! ( function. eval( & state) . unwrap( ) ) ;
435- }
436-
437- #[ test]
438- #[ allow( non_snake_case) ]
439- fn function_file_path_eval_should_be_false_if_given_LOOT_and_loot_path_does_not_exist ( ) {
440- let function = Function :: FilePath ( PathBuf :: from ( "LOOT" ) ) ;
441- let state = state_with_loot_path ( "." , "missing" ) ;
442-
443- assert ! ( !function. eval( & state) . unwrap( ) ) ;
444- }
445-
446422 #[ test]
447423 fn function_file_path_eval_should_not_check_for_ghosted_non_plugin_file ( ) {
448424 let tmp_dir = tempdir ( ) . unwrap ( ) ;
@@ -515,13 +491,7 @@ mod tests {
515491 #[ test]
516492 fn function_file_regex_eval_should_check_all_configured_data_paths ( ) {
517493 let function = Function :: FileRegex ( PathBuf :: from ( "Data" ) , regex ( "Blank\\ .esp" ) ) ;
518- let state = state_with_data (
519- "./src" ,
520- vec ! [ "./tests/testing-plugins/Oblivion" ] ,
521- "." ,
522- & [ ] ,
523- & [ ] ,
524- ) ;
494+ let state = state_with_data ( "./src" , vec ! [ "./tests/testing-plugins/Oblivion" ] , & [ ] , & [ ] ) ;
525495
526496 assert ! ( function. eval( & state) . unwrap( ) ) ;
527497 }
@@ -781,7 +751,6 @@ mod tests {
781751 let state = state_with_data (
782752 "./tests/testing-plugins/Skyrim" ,
783753 vec ! [ "./tests/testing-plugins/Oblivion" ] ,
784- "." ,
785754 & [ ] ,
786755 & [ ] ,
787756 ) ;
@@ -878,24 +847,6 @@ mod tests {
878847 assert ! ( !function. eval( & state) . unwrap( ) ) ;
879848 }
880849
881- #[ test]
882- #[ allow( non_snake_case) ]
883- fn function_checksum_eval_should_be_true_if_given_LOOT_crc_matches ( ) {
884- let function = Function :: Checksum ( PathBuf :: from ( "LOOT" ) , 0x374E2A6F ) ;
885- let state = state_with_loot_path ( "." , "tests/testing-plugins/Oblivion/Data/Blank.esm" ) ;
886-
887- assert ! ( function. eval( & state) . unwrap( ) ) ;
888- }
889-
890- #[ test]
891- #[ allow( non_snake_case) ]
892- fn function_checksum_eval_should_be_false_if_given_LOOT_crc_does_not_match ( ) {
893- let function = Function :: Checksum ( PathBuf :: from ( "LOOT" ) , 0xDEADBEEF ) ;
894- let state = state_with_loot_path ( "." , "tests/testing-plugins/Oblivion/Data/Blank.esm" ) ;
895-
896- assert ! ( !function. eval( & state) . unwrap( ) ) ;
897- }
898-
899850 #[ test]
900851 fn function_checksum_eval_should_be_false_if_given_a_directory_path ( ) {
901852 // The given CRC is the CRC-32 of the directory as calculated by 7-zip.
0 commit comments