• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

JuliaLang / julia / #37570
77%

Build:
DEFAULT BRANCH: master
Ran 15 Jun 2023 12:20PM UTC
Jobs 1
Files 347
Run time 7s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
#37570

push

local

web-flow
Make sure Core.Compiler can throw kwarg mismatch errors (#50174)

The _new_NamedTuple helper was in a Base-only branch, causing

```

julia> Core.eval(Core.Compiler, quote f(;a=1) = a end)
f (generic function with 1 method)

julia> Core.Compiler.f(;b=2)
ERROR: UndefVarError: `_new_NamedTuple` not defined
Stacktrace:
 [1] macro expansion
   @ Core.Compiler ./namedtuple.jl:0 [inlined]
 [2] structdiff(a::@NamedTuple{b::Int64}, b::Type{NamedTuple{(:a,)}})
   @ Core.Compiler ./namedtuple.jl:421
 [3] top-level scope
   @ REPL[2]:1
```

After this change, we have the expected
```
julia> Core.eval(Core.Compiler, quote f(;a=1) = a end)
f (generic function with 1 method)

julia> Core.Compiler.f(;b=2)
ERROR: MethodError: no method matching f(; b::Int64)

Closest candidates are:
  f(; a) got unsupported keyword argument "b"
   @ Core REPL[13]:1

Stacktrace:
 [1] kwerr(kw::@NamedTuple{b::Int64}, args::Function)
   @ Core.Compiler ./error.jl:165
 [2] top-level scope
   @ REPL[14]:1
```

2 of 2 new or added lines in 1 file covered. (100.0%)

72937 of 84140 relevant lines covered (86.69%)

36259858.03 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
86.03
-0.37% base/compiler/utilities.jl
1
89.58
-1.14% base/error.jl
1
93.4
7.46% base/expr.jl
1
84.62
-0.55% base/indices.jl
1
63.58
0.0% base/libc.jl
1
89.82
-0.3% base/process.jl
1
88.84
0.68% base/show.jl
1
97.89
28.91% base/sort.jl
1
62.28
-0.35% base/util.jl
1
92.49
-0.17% stdlib/LinearAlgebra/src/diagonal.jl
1
92.61
-0.43% stdlib/Random/src/generation.jl
1
87.18
-0.15% stdlib/REPL/src/REPLCompletions.jl
2
68.48
-2.17% stdlib/Test/src/logging.jl
3
76.47
-3.53% base/experimental.jl
4
76.77
-1.35% base/client.jl
5
91.38
53.45% stdlib/Dates/src/query.jl
5
95.0
38.17% stdlib/Dates/src/types.jl
9
57.0
-9.0% base/deprecated.jl
9
88.15
-3.14% base/iobuffer.jl
10
82.23
-0.59% base/loading.jl
10
68.27
-4.02% stdlib/LinearAlgebra/src/givens.jl
12
82.84
-2.7% base/task.jl
24
74.13
-4.02% stdlib/Distributed/src/cluster.jl
26
59.22
-1.6% base/compiler/ssair/verify.jl
36
38.21
-11.96% stdlib/Distributed/src/managers.jl
44
72.92
-22.92% stdlib/Dates/src/parse.jl
82
84.8
-9.53% stdlib/Test/src/Test.jl
100
47.0
-46.08% stdlib/Dates/src/io.jl
158
63.55
-26.0% base/errorshow.jl
Jobs
ID Job ID Ran Files Coverage
1 #37570.1 15 Jun 2023 12:20PM UTC 347
86.69
Source Files on build #37570
  • Tree
  • List 347
  • Changed 282
  • Source Changed 0
  • Coverage Changed 282
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 0f269668 on github
  • Prev Build on master
  • Next Build on master
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc