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

moonbitlang / core / 8280
87%

Build:
DEFAULT BRANCH: main
Ran 14 Nov 2026 04:34AM UTC
Jobs 1
Files 695
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 Nov 2026 04:32AM UTC coverage: 88.245% (+0.001%) from 88.244%
8280

push

github

web-flow
feat(queue): add shrink_to_fit and Compare/Hash like Deque (#4705)

* feat(queue): expose capacity control and Compare/Hash like Deque

Queue::pop and Queue::clear leave vacated Deque slots referring to the
removed values, and Queue offered no way to release them. Add
Queue::capacity, Queue::shrink_to_fit and Queue::release_unused
(placeholder~), forwarding to the Deque methods of the same names, and
document the retention on pop and clear the way Deque does. clear's
behaviour is unchanged.

Queue also lacked Compare and Hash although the wrapped Deque has both.
Add them by delegation and promote compare/hash in extends.mbt per
AGENTS.md (op_lt/op_le/op_ge/op_gt and hash_combine stay deprecated).

Codex: "Approved. The shortlex wording matches Deque's length-first comparison."

Signed-off-by: Codex CLI <codex@openai.com>

* refactor(queue): expose only shrink_to_fit for releasing removed elements

Drop Queue::capacity and Queue::release_unused: shrink_to_fit alone
releases what pop/clear/transfer leave behind, needs no placeholder, and
its contract does not depend on Queue being backed by a Deque. Callers
who need finer buffer control can use @deque.Deque directly.

Reword the retention docs to describe the contract rather than the
Deque's slot layout, note it on transfer, and replace the whitebox tests
that inspected the Deque buffer with one capacity check.

---------

Signed-off-by: Codex CLI <codex@openai.com>

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

25667 of 29086 relevant lines covered (88.25%)

438093.66 hits per line

Jobs
ID Job ID Ran Files Coverage
1 8280.1 14 Nov 2026 04:34AM UTC 695
88.25
GitHub Action Run
Source Files on build 8280
  • Tree
  • List 695
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 7c6230d9 on github
  • Prev Build on main (#8274)
  • Next Build on main (#8281)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc