@@ -1004,32 +1004,6 @@ def test_categorized_frames_are_not_processed(self) -> None:
10041004 expected_new_in_app_stack_trace_rules = ["stack.module:android.app.** +app" ],
10051005 )
10061006
1007- def test_multi_module_with_old_granularity (self ) -> None :
1008- java_module_prefix = "com.example.multi"
1009- module_prefix = java_module_prefix .replace ("." , "/" ) + "/"
1010- repo_trees = {
1011- REPO1 : [
1012- f"modules/modX/{ module_prefix } foo/Bar.kt" ,
1013- f"modules/modY/{ module_prefix } bar/Baz.kt" ,
1014- ]
1015- }
1016- frames = [
1017- self .frame_from_module (f"{ java_module_prefix } .foo.Bar" , "Bar.kt" ),
1018- self .frame_from_module (f"{ java_module_prefix } .bar.Baz" , "Baz.kt" ),
1019- ]
1020- self ._process_and_assert_configuration_changes (
1021- repo_trees = repo_trees ,
1022- frames = frames ,
1023- platform = self .platform ,
1024- expected_new_code_mappings = [
1025- # It's missing the extra granularity
1026- # It's going to pick modY since it is the first frame processed, thus,
1027- # the other frame will not have a working code mapping
1028- self .code_mapping ("com/example/multi/" , "modules/modY/com/example/multi/" )
1029- ],
1030- expected_new_in_app_stack_trace_rules = ["stack.module:com.example.** +app" ],
1031- )
1032-
10331007 def test_multi_module (self ) -> None :
10341008 # Some Java projects have all modules under the same com/foo/bar directory
10351009 # however, some projects have different modules under different directories
@@ -1051,16 +1025,13 @@ def test_multi_module(self) -> None:
10511025 self .frame_from_module (f"{ java_module_prefix } .foo.Bar" , "Bar.kt" ),
10521026 self .frame_from_module (f"{ java_module_prefix } .bar.Baz" , "Baz.kt" ),
10531027 ]
1054- with self .options ({"auto_source_code_config.multi_module_java" : True }):
1055- self ._process_and_assert_configuration_changes (
1056- repo_trees = repo_trees ,
1057- frames = frames ,
1058- platform = self .platform ,
1059- expected_new_code_mappings = [
1060- self .code_mapping (f"{ module_prefix } foo/" , f"modules/modX/{ module_prefix } foo/" ),
1061- self .code_mapping (f"{ module_prefix } bar/" , f"modules/modY/{ module_prefix } bar/" ),
1062- ],
1063- expected_new_in_app_stack_trace_rules = [
1064- f"stack.module:{ java_module_prefix } .** +app"
1065- ],
1066- )
1028+ self ._process_and_assert_configuration_changes (
1029+ repo_trees = repo_trees ,
1030+ frames = frames ,
1031+ platform = self .platform ,
1032+ expected_new_code_mappings = [
1033+ self .code_mapping (f"{ module_prefix } foo/" , f"modules/modX/{ module_prefix } foo/" ),
1034+ self .code_mapping (f"{ module_prefix } bar/" , f"modules/modY/{ module_prefix } bar/" ),
1035+ ],
1036+ expected_new_in_app_stack_trace_rules = [f"stack.module:{ java_module_prefix } .** +app" ],
1037+ )
0 commit comments