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

openbraininstitute / neurodamus / 13967358348
90%

Build:
DEFAULT BRANCH: main
Ran 20 Mar 2025 10:40AM UTC
Jobs 2
Files 48
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

20 Mar 2025 10:40AM UTC coverage: 66.234% (-0.01%) from 66.245%
13967358348

push

github

web-flow
`Node.__init__`: split it into `__init__` and `_reset` (#158)

## Context

`__init__` has an internal api where, if the config_file is None it just
resets the internal variables. It is done mainly for multicycle runs.
This goes against the SRP. In addition, users may still use this
function in this way. This may create confusion.

## Scope

`__init__` has been split in `__init__` and `_reset`. `__init__` calls
reset under the hood. The main advantages are that:

- `_reset` is clearly marked for internal use only
- `__init__` simply fails if the `config_file` is `None`
- SRP

Added also a nice docstrings for good measure

Fix: #103 

## Testing

Since this is refactoring and `__init__` is already tested this should
not alter our tests and no additional tests should be required.

1 of 39 new or added lines in 1 file covered. (2.56%)

5967 of 9009 relevant lines covered (66.23%)

0.9 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
38
14.35
0.09% neurodamus/node.py
Subprojects
ID Flag name Job ID Ran Files Coverage
1 baseline 13967358348.1 20 Mar 2025 10:40AM UTC 48
24.35
GitHub Action Run
2 unit 13967358348.2 20 Mar 2025 10:41AM UTC 48
65.85
GitHub Action Run
Source Files on build 13967358348
  • Tree
  • List 48
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #13967358348
  • ec61ef97 on github
  • Prev Build on main (#13816229923)
  • Next Build on main (#13988186207)
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