22
33from launchpad .size .insights .apple .main_binary_export_metadata import MainBinaryExportMetadataInsight
44from launchpad .size .insights .insight import InsightsInput
5- from launchpad .size .models .apple import DyldInfo , MachOBinaryAnalysis
5+ from launchpad .size .models .apple import LinkEditInfo , MachOBinaryAnalysis
66from launchpad .size .models .common import BaseAppInfo , FileAnalysis
77from launchpad .size .models .insights import MainBinaryExportMetadataResult
88
@@ -26,7 +26,7 @@ def test_generate_with_main_binary_and_dyld_exports_trie(self):
2626 swift_metadata = None ,
2727 is_main_binary = True ,
2828 header_size = 32 ,
29- dyld_info = DyldInfo (export_trie_size = 5000 ),
29+ linkedit_info = LinkEditInfo (export_trie_size = 5000 ),
3030 )
3131
3232 insights_input = InsightsInput (
@@ -42,7 +42,7 @@ def test_generate_with_main_binary_and_dyld_exports_trie(self):
4242 assert result .total_savings == 5000
4343
4444 def test_generate_with_main_binary_without_dyld_exports_trie (self ):
45- """Test that no insight is generated when main binary has no dyld_info ."""
45+ """Test that no insight is generated when main binary has no linkedit_info ."""
4646 main_binary_analysis = MachOBinaryAnalysis (
4747 binary_absolute_path = Path ("MyApp" ),
4848 binary_relative_path = Path ("MyApp" ),
@@ -56,7 +56,7 @@ def test_generate_with_main_binary_without_dyld_exports_trie(self):
5656 swift_metadata = None ,
5757 is_main_binary = True ,
5858 header_size = 32 ,
59- dyld_info = None , # No dyld_info
59+ linkedit_info = None , # No linkedit_info
6060 )
6161
6262 insights_input = InsightsInput (
@@ -85,7 +85,7 @@ def test_generate_with_no_main_binary(self):
8585 swift_metadata = None ,
8686 is_main_binary = False , # Not a main binary
8787 header_size = 32 ,
88- dyld_info = DyldInfo (export_trie_size = 5000 ), # Has export trie but not main binary
88+ linkedit_info = LinkEditInfo (export_trie_size = 5000 ), # Has export trie but not main binary
8989 )
9090
9191 insights_input = InsightsInput (
@@ -114,7 +114,7 @@ def test_generate_with_main_binary_but_empty_export_trie(self):
114114 swift_metadata = None ,
115115 is_main_binary = True ,
116116 header_size = 32 ,
117- dyld_info = DyldInfo (export_trie_size = 0 ), # Zero-size export trie
117+ linkedit_info = LinkEditInfo (export_trie_size = 0 ), # Zero-size export trie
118118 )
119119
120120 insights_input = InsightsInput (
@@ -156,7 +156,7 @@ def test_generate_with_multiple_binaries_one_main(self):
156156 swift_metadata = None ,
157157 is_main_binary = True ,
158158 header_size = 32 ,
159- dyld_info = DyldInfo (export_trie_size = 8000 ),
159+ linkedit_info = LinkEditInfo (export_trie_size = 8000 ),
160160 )
161161
162162 # Create framework binary (non-main)
@@ -173,7 +173,7 @@ def test_generate_with_multiple_binaries_one_main(self):
173173 swift_metadata = None ,
174174 is_main_binary = False ,
175175 header_size = 32 ,
176- dyld_info = DyldInfo (export_trie_size = 3000 ), # Framework also has export trie but won't be included
176+ linkedit_info = LinkEditInfo (export_trie_size = 3000 ), # Framework also has export trie but won't be included
177177 )
178178
179179 insights_input = InsightsInput (
@@ -203,7 +203,7 @@ def test_generate_with_export_trie_below_threshold(self):
203203 swift_metadata = None ,
204204 is_main_binary = True ,
205205 header_size = 32 ,
206- dyld_info = DyldInfo (export_trie_size = 512 ), # Below MIN_EXPORTS_THRESHOLD (1024)
206+ linkedit_info = LinkEditInfo (export_trie_size = 512 ), # Below MIN_EXPORTS_THRESHOLD (1024)
207207 )
208208
209209 insights_input = InsightsInput (
@@ -232,7 +232,7 @@ def test_generate_with_export_trie_at_threshold(self):
232232 swift_metadata = None ,
233233 is_main_binary = True ,
234234 header_size = 32 ,
235- dyld_info = DyldInfo (export_trie_size = 1024 ), # Exactly at MIN_EXPORTS_THRESHOLD
235+ linkedit_info = LinkEditInfo (export_trie_size = 1024 ), # Exactly at MIN_EXPORTS_THRESHOLD
236236 )
237237
238238 insights_input = InsightsInput (
0 commit comments