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

moonbitlang / core / 4351
94%

Build:
DEFAULT BRANCH: main
Ran 14 May 2026 01:36AM UTC
Jobs 1
Files 369
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

14 May 2026 01:35AM UTC coverage: 94.275% (+0.003%) from 94.272%
4351

push

github

bobzhang
feat(hashmap): add get_from_bytes / get_from_string to match Map API

`builtin/Map` already supports zero-allocation lookups with a `BytesView` /
`StringView` key (`Map::get_from_bytes`, `Map::get_from_string`). The
unordered `@hashmap.HashMap` had no such pair, so callers had to materialize
an owned `Bytes` / `String` to probe a hash map with view-shaped keys.

This adds the two mirror methods on `HashMap`, with the same probing logic
as `Map`. The cross-type equality helpers used here
(`BytesView::equal_to_bytes`, `StringView::equal_to_string`) come from
the preceding refactor in `builtin`, so no helpers are duplicated.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

8 of 10 new or added lines in 1 file covered. (80.0%)

2 existing lines in 1 file now uncovered.

14904 of 15809 relevant lines covered (94.28%)

217231.31 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
94.2
-1.11% hashmap/hashmap.mbt

Coverage Regressions

Lines Coverage ∆ File
2
98.93
0.04% builtin/stringview.mbt
Jobs
ID Job ID Ran Files Coverage
1 4351.1 14 May 2026 01:36AM UTC 370
94.29
GitHub Action Run
Source Files on build 4351
  • Tree
  • List 369
  • Changed 5
  • Source Changed 5
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 969f160c on github
  • Prev Build on main (#4346)
  • Next Build on main (#4356)
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