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

pulibrary / bibdata / 0221e96f-891a-47eb-89a1-744e7298db93
92%
main: 92%

Build:
Build:
LAST BUILD BRANCH: composition
DEFAULT BRANCH: main
Ran 14 Oct 2026 03:08PM UTC
Jobs 2
Files 206
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 Oct 2026 02:52PM UTC coverage: 91.708% (+0.04%) from 91.673%
0221e96f-891a-47eb-89a1-744e7298db93

push

circleci

sandbergja
Refactor: use function composition for some data processing

This is intended to help in situations like the following:
```
remove_punctuation(normalize_characters(remove_spaces(my_string)))
```
...where it is not immediately obvious that we first remove spaces,
then normalize characters, and finally remove punctuation (at least,
I have to think about it for a second).

Instead, we can now do:
```
pipe!(remove_spaces, normalize_characters, remove_punctuation)(my_string)
```
...where the order is very clear.

It works in some cases, but not others.  For example, if
`normalize_characters` in the example above returned an
owned string, but `remove_punctuation` accepted and
returned borrowed references, we would get a compiler error.

My thoughts are that this still can make some scenarios clearer,
what do you think?

60 of 96 new or added lines in 11 files covered. (62.5%)

6 existing lines in 3 files now uncovered.

12929 of 14098 relevant lines covered (91.71%)

79.92 hits per line

Uncovered Changes

Lines Coverage ∆ File
28
53.89
0.39% lib/bibdata_rs/src/marc/non_latin.rs
7
74.36
-0.01% lib/bibdata_rs/src/marc/cjk.rs
1
95.35
0.0% lib/bibdata_rs/src/marc/title/uniform_title.rs

Coverage Regressions

Lines Coverage ∆ File
4
53.89
0.39% lib/bibdata_rs/src/marc/non_latin.rs
1
74.36
-0.01% lib/bibdata_rs/src/marc/cjk.rs
1
97.22
-0.02% lib/bibdata_rs/src/marc/holdings/partner.rs
Jobs
ID Job ID Ran Files Coverage
1 0221e96f-891a-47eb-89a1-744e7298db93.1 14 Oct 2026 03:08PM UTC 102
91.52
2 0221e96f-891a-47eb-89a1-744e7298db93.2 14 Oct 2026 03:12PM UTC 104
92.4
Source Files on build 0221e96f-891a-47eb-89a1-744e7298db93
  • Tree
  • List 206
  • Changed 11
  • Source Changed 11
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • CircleCI Build #0221E96F...
  • 87874646 on github
  • Prev Build on main (#ACDD367C...)
  • Next Build on composition (#340BC163...)
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