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

Alan-Jowett / libbtf / 22200640262
95%

Build:
DEFAULT BRANCH: main
Ran 19 Feb 2026 09:26PM UTC
Jobs 1
Files 11
Run time 1min
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

18 Feb 2026 05:11PM UTC coverage: 94.988% (+0.1%) from 94.853%
22200640262

push

github

web-flow
Reject BTF maps with incomplete key/value types (#189)

When parsing BTF map definitions, if a key or value field points to an
incomplete type (such as BTF_KIND_FWD), get_size() returns 0. Previously
this was silently accepted, leading to invalid map definitions.

This change:
- Detects when key/value size cannot be determined (size == 0)
- Throws an error with the map name and type name for easier diagnosis
- Makes get_type_name() public to support informative error messages
- Adds tests for both key and value forward declaration rejection

This matches libbpf behavior which rejects maps where btf__resolve_size()
fails for key/value types.

Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
Co-authored-by: Alan Jowett <alan.jowett@microsoft.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

65 of 65 new or added lines in 2 files covered. (100.0%)

2293 of 2414 relevant lines covered (94.99%)

1491.18 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run--ubuntu-22.04- - 22200640262.1 19 Feb 2026 09:26PM UTC 11
94.99
GitHub Action Run
Source Files on build 22200640262
  • Tree
  • List 11
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #22200640262
  • 55c22b71 on github
  • Prev Build on main (#22105907133)
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