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

cameri / nostream / 46318071802
78%
main: 81%

Build:
Build:
LAST BUILD BRANCH: rewrite/main
DEFAULT BRANCH: main
Ran 29 Nov 2026 10:33PM UTC
Jobs 2
Files 321
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

29 Nov 2026 10:29PM UTC coverage: 77.622% (-0.005%) from 77.627%
46318071802

push

github

web-flow
test(mcp): pin that the offset refusal happens before any store call (#1268) (#1288)

## Description

Adds regression assertions in
`crates/nostream-mcp/tests/tool_payloads.rs` under
`a_refused_criterion_never_reaches_the_store` verifying that for
`TOOL_INVOICES_LIST`, `offset` values greater than `MAX_ROWS_PER_SKIP`
(such as `5001` and `u64::MAX`) are rejected at the door before any
store call is dispatched. Also pins that the boundary offset `5000`
(`MAX_ROWS_PER_SKIP`) successfully passes door validation and proceeds
to the store.

## Related Issue

Closes #1268

## Motivation and Context

The issue notes that `offset: 5001` and `offset: u64::MAX` were already
guarded by handler validation, but were not explicitly pinned in the
test suite against the store boundary seam.

`crates/nostream-mcp/tests/tool_payloads.rs` is the only test file
configured with `Stores::Unavailable`, where all storage repositories
return `StorageError::NotImplemented { module:
"storage::backend::wiring" }`. By testing these offset values here:
- Values above `MAX_ROWS_PER_SKIP` (`5001` and `u64::MAX`) return an
argument error (`offset: <value> exceeds the per-skip maximum of 5000`)
without ever touching the store seam (no `storage::backend::wiring`
error).
- Boundary value `MAX_ROWS_PER_SKIP` (`5000`) passes door validation and
reaches the store, failing with the store seam's `NotImplemented` error.

This cleanly verifies that the offset refusal happens strictly before
any storage call is made.

## How Has This Been Tested?

- Ran the modified test suite:
  - `cargo test -p nostream-mcp --test tool_payloads` (23/23 passed)
- Ran all other MCP test suites:
  - `cargo test -p nostream-mcp --test store_families` (19/19 passed)
  - `cargo test -p nostream-mcp --test audit` (6/6 passed)
  - `cargo test -p nostream-mcp --test tools_list` (5/5 passed)
- Ran formatting and linter checks:
  - `cargo fmt --check --package nostream-mcp`
- `cargo clippy -p nostream-mcp --all-targets -... (continued)

4512 of 6355 branches covered (71.0%)

Branch coverage included in aggregate %.

9824 of 12114 relevant lines covered (81.1%)

760.25 hits per line

Jobs
ID Job ID Ran Files Coverage
1 Integration - 46318071802.1 29 Nov 2026 10:33PM UTC 321
33.06
GitHub Action Run
2 Unit - 46318071802.2 29 Nov 2026 10:34PM UTC 321
75.08
GitHub Action Run
Source Files on build 46318071802
  • Tree
  • List 321
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #46318071802
  • 64916a6c on github
  • Prev Build on rewrite/main (#46300978027)
  • Next Build on rewrite/main (#46326495726)
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