@@ -63,7 +63,7 @@ using Aqua: Piracy
6363using PiracyForeignProject: ForeignType, ForeignParameterizedType, ForeignNonSingletonType
6464
6565# Get all methods - test length
66- meths = filter (Piracy. all_methods (PiracyModule; skip_deprecated = true )) do m
66+ meths = filter (Piracy. all_methods (PiracyModule)) do m
6767 m. module == PiracyModule
6868end
6969
@@ -90,7 +90,7 @@ ThisPkg = Base.PkgId(PiracyModule)
9090@test ! Piracy. is_foreign (Set{Int}, CorePkg; treat_as_own = [])
9191
9292# Test what is pirate
93- pirates = filter (m -> Piracy. is_pirate (m), meths )
93+ pirates = Piracy. hunt (PiracyModule )
9494@test length (pirates) ==
9595 3 + # findfirst
9696 3 + # findmax
@@ -102,7 +102,7 @@ pirates = filter(m -> Piracy.is_pirate(m), meths)
102102end
103103
104104# Test what is pirate (with treat_as_own=[ForeignType])
105- pirates = filter (m -> Piracy. is_pirate (m; treat_as_own = [ForeignType]), meths )
105+ pirates = Piracy. hunt (PiracyModule, treat_as_own = [ForeignType])
106106@test length (pirates) ==
107107 3 + # findfirst
108108 3 + # findmin
@@ -112,7 +112,7 @@ pirates = filter(m -> Piracy.is_pirate(m; treat_as_own = [ForeignType]), meths)
112112end
113113
114114# Test what is pirate (with treat_as_own=[ForeignParameterizedType])
115- pirates = filter (m -> Piracy. is_pirate (m; treat_as_own = [ForeignParameterizedType]), meths )
115+ pirates = Piracy. hunt (PiracyModule, treat_as_own = [ForeignParameterizedType])
116116@test length (pirates) ==
117117 3 + # findfirst
118118 3 + # findmax
@@ -135,8 +135,7 @@ pirates = filter(
135135end
136136
137137# Test what is pirate (with treat_as_own=[Base.findfirst, Base.findmax])
138- pirates =
139- filter (m -> Piracy. is_pirate (m; treat_as_own = [Base. findfirst, Base. findmax]), meths)
138+ pirates = Piracy. hunt (PiracyModule, treat_as_own = [Base. findfirst, Base. findmax])
140139@test length (pirates) ==
141140 3 + # findmin
142141 1 + # ForeignType callable
0 commit comments