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

BlueBrain / MorphIO / 7460768279
78%

Build:
DEFAULT BRANCH: master
Ran 09 Jan 2024 11:57AM UTC
Jobs 1
Files 42
Run time 4s
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

09 Jan 2024 11:54AM UTC coverage: 77.331% (+0.4%) from 76.947%
7460768279

push

github

web-flow
Better warning handling (#482)

Previously, warning would be printed to the console by default, with little control over how this was handled - one could ignore certain errors, or set the max number that were printed, but this applied across the whole library, since it was handled statically.

Now, one can pass a `WarningHandler` when calling specific functions (like reading a `Morphology`); this allows for more fine grained control of when warnings are emitted.

For instance, one can use the `WarningHandlerCollector` to collect all the warnings, and after writing, examine them.
Multiple `WarningHandlers` can be alive at the same time; one could be used while loading morphologies, and another for a writing.

The global/old behavior is retained for now, but it is recommended to use these new capabilities.

When working on morphio, instead of emitting warnings with the type and then string msg:
```
    handler->emit(morphio::Warning::SOMA_NON_CONFORM,
                  morphio::details::ErrorMessages().WARNING_NEUROMORPHO_SOMA_NON_CONFORM(
                      stream.str()));
```
One does:
```
    handler->emit(std::make_unique<morphio::SomaNonConform>("filename", stream.str()));
```

2057 of 2660 relevant lines covered (77.33%)

863.21 hits per line

Jobs
ID Job ID Ran Files Coverage
1 7460768279.1 09 Jan 2024 11:57AM UTC 42
77.33
GitHub Action Run
Source Files on build 7460768279
  • Tree
  • List 42
  • Changed 23
  • Source Changed 0
  • Coverage Changed 21
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 25b781e3 on github
  • Prev Build on master (#7408481488)
  • Next Build on master (#7486839991)
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