@@ -2004,32 +2004,3 @@ let s = "using ...Issue52922.Inn"
20042004 @test res
20052005 @test " Inner2" in c
20062006end
2007-
2008- function g54131 end
2009- for i in 1 : 498
2010- @eval g54131 (:: Val{$i} ) = i
2011- end
2012- g54131 (:: Val{499} ; kwarg= true ) = 499 * kwarg
2013- struct F54131; end
2014- Base. getproperty (:: F54131 , :: Symbol ) = Any[cos, sin, g54131][rand (1 : 3 )]
2015- f54131 = F54131 ()
2016- @testset " performance of kwarg completion with large method tables" begin
2017- # The goal here is to simply ensure we aren't hitting catestrophically bad
2018- # behaviors when shift isn't pressed. The difference between good and bad
2019- # is on the order of tens of milliseconds vs tens of seconds; using 1 sec as
2020- # a very rough canary that is hopefully robust even in the noisy CI coalmines
2021- s = " g54131(kwa"
2022- a, b, c = completions (s, lastindex (s), @__MODULE__ , #= shift =# false )
2023- @test REPLCompletions. KeywordArgumentCompletion (" kwarg" ) in a
2024- @test (@elapsed completions (s, lastindex (s), @__MODULE__ , false )) < 1
2025-
2026- s = " f54131.x("
2027- a, b, c = completions (s, lastindex (s), @__MODULE__ , false )
2028- @test only (a) isa REPLCompletions. TextCompletion
2029- @test (@elapsed completions (s, lastindex (s), @__MODULE__ , false )) < 1
2030-
2031- s = " f54131.x(kwa"
2032- a, b, c = completions (s, lastindex (s), @__MODULE__ , false )
2033- @test_broken REPLCompletions. KeywordArgumentCompletion (" kwarg" ) in a
2034- @test (@elapsed completions (s, lastindex (s), @__MODULE__ , false )) < 1
2035- end
0 commit comments