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

sunng87 / handlebars-rust / 29196519769
84%

Build:
DEFAULT BRANCH: master
Ran 12 Jul 2026 02:40PM UTC
Jobs 1
Files 30
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

12 Jul 2026 07:59AM UTC coverage: 84.495% (-0.6%) from 85.052%
29196519769

push

github

web-flow
test: add shared TestHandlebars helpers and adopt across render tests (#771)

Introduce an off-by-default `testing` cargo feature exposing a
`#[doc(hidden)] pub mod testing` with a `TestHandlebars` extension trait
over `Registry`: `assert_render_template`, `assert_render`, `register`,
`assert_render_template_ok`, `assert_render_template_err`, and
`assert_render_err`. Method names mirror the underlying `Registry` calls
1:1. The module is compiled for this crate's own tests via a self
dev-dependency, and is also available to downstream users testing custom
helpers/templates. On failure, assertions print the template and the data
so the cause is obvious without a debugger.

Adopt the trait across the render-assert tests in `tests/` and the
`src/` unit-test modules, removing ~750 lines of
`register_template_string(..).is_ok()` / `.unwrap()` / `assert_eq!`
boilerplate. `helper_macro` becomes table-driven. Low-level tests
(template AST, grammar parser, context navigation, render-of-elements,
and the detailed error-inspection tests in registry/render) are
intentionally left untouched.

Two pre-existing issues fixed during the pass:
- `helper_each::test_nested_each_with_path_ups` was missing its `#[test]`
  attribute (dead code); it now runs and passes.
- `partial::teset_partial_context_with_both_hash_and_param` typo renamed
  to `test_...`.

26 of 44 new or added lines in 2 files covered. (59.09%)

1733 of 2051 relevant lines covered (84.5%)

8.2 hits per line

Uncovered Changes

Lines Coverage ∆ File
18
57.14
src/testing.rs
Jobs
ID Job ID Ran Files Coverage
1 29196519769.1 12 Jul 2026 02:40PM UTC 30
84.5
GitHub Action Run
Source Files on build 29196519769
  • Tree
  • List 30
  • Changed 10
  • Source Changed 0
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 171b2a7c on github
  • Prev Build on master (#29182309664)
  • Next Build on master (#29263449187)
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