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

rust-bitcoin / rust-bitcoin / 13706706721
83%

Build:
DEFAULT BRANCH: master
Ran 06 Mar 2025 07:35PM UTC
Jobs 1
Files 125
Run time 3min
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

06 Mar 2025 07:34PM UTC coverage: 83.007% (-0.01%) from 83.017%
13706706721

push

github

apoelstra
Merge rust-bitcoin/rust-bitcoin#4092: Add `Timestamp` newtype

<a class=hub.com/rust-bitcoin/rust-bitcoin/commit/<a class="double-link" href="https://git"><a class=hub.com/rust-bitcoin/rust-bitcoin/commit/b3f122b3996c1a73479be2f95b7f2ae642c9c56f">b3f122b39 Add Timestamp newtype (Tobin C. Harding)

Pull request description:

  Bitcoin block headers have a timestamp. Currently we are using a `u32`. While this functions correctly it gives the compiler no chance to enforce type safety.

  Add a `Timestamp` newtype that is a thin wrapper around a `u32`. Document it and test the API surface in `api.rs`.

ACKs for top commit:
  apoelstra:
    ACK b3f122b3996c1a73479be2f95b7f2ae642c9c56f; successfully ran local tests
  Kixunil:
    ACK b3f122b3996c1a73479be2f95b7f2ae642c9c56f

Tree-SHA512: 6f4a4a5887a00612775d8ec148fff30b78a

28 of 33 new or added lines in 6 files covered. (84.85%)

21557 of 25970 relevant lines covered (83.01%)

16774.55 hits per line

Uncovered Changes

Lines Coverage ∆ File
5
37.5
units/src/timestamp.rs
Jobs
ID Job ID Ran Files Coverage
1 13706706721.1 06 Mar 2025 07:35PM UTC 125
83.01
GitHub Action Run
Source Files on build 13706706721
  • Tree
  • List 125
  • Changed 6
  • Source Changed 6
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #13706706721
  • fa8eaf02 on github
  • Prev Build on master (#13705875885)
  • Next Build on master (#13710071252)
  • Delete
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