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

simonrw / rust-fitsio / 10112129672
76%

Build:
DEFAULT BRANCH: main
Ran 26 Jul 2024 01:32PM UTC
Jobs 1
Files 13
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

26 Jul 2024 01:31PM UTC coverage: 76.094% (-0.7%) from 76.797%
10112129672

push

github

web-flow
feat: POC header comment API design (#332)

# Motivation

Inspired by https://github.com/simonrw/rust-fitsio/pull/307, can we
design a nice API to read/write comments of header cards?

# Changes

* `write_key` takes either a simple value, or a tuple of (value,
comment) for writing comments
* `read_key` returns a new structured type which contains both the value
and comment
* tests and docs updated
* restructure the headers code
    * create new `headers` module with previous code
    * add `constants` module, mostly with header related lengths
* add `header_value` module defining the `HeaderValue<T>` type along
with its std trait implementations

# TODO

* [x] `write_key` support
* [x] `read_key` support
* [x] perform assertions on header card lengths
* [x] rewrite the change in a backwards compatible way
    - [x] writing a header value is backwards compatible already
- [x] make `read_key` take either a primitive value (backwards
compatible) or `HeaderValue<_>`
* [x] remove public access to `HeaderValue` internals? Or remove methods
  * decifded to keep fields as the type should be simple

108 of 146 new or added lines in 2 files covered. (73.97%)

904 of 1188 relevant lines covered (76.09%)

2.72 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
12
25.0
fitsio/src/headers/header_value.rs
26
80.0
fitsio/src/headers/mod.rs
Jobs
ID Job ID Ran Files Coverage
1 10112129672.1 26 Jul 2024 01:32PM UTC 13
76.09
GitHub Action Run
Source Files on build 10112129672
  • Tree
  • List 13
  • Changed 8
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 65c99625 on github
  • Prev Build on main (#10109912840)
  • Next Build on main (#10112409601)
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

© 2025 Coveralls, Inc