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

marshallward / f90nml / 210 / 8
99%
master: 99%

Build:
DEFAULT BRANCH: master
Ran 20 Sep 2016 12:17PM UTC
Files 5
Run time 0s
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 Sep 2016 12:07PM UTC coverage: 99.538% (+0.01%) from 99.526%
210.8

push

travis-ci

marshallward
Patch bugfix for vector of different size

Previously, the `patch` function only worked if the namelist and its
patch used vectors of the same size.  If the patch vector was smaller,
then the trailing values would still be retained in the patched namelist
file.

This patch fixes this issue by making the following changes:

1. Check if we are beyond the range of the patched vector; if so, then
   enable a new flag (`patch_skip`) in `update_tokens`.

2. Store patched whitespace and comments into a saved variable, rather
   than directly write to the patched file during token sweeping

3. When the new flag is on, check if the next value is either an old
   value or a new variable name.  This is done by checking if the next
   token is '='.

We also had to wrap one of the `next` calls around a StopIteration
exception check, and force an early write to patch if this occurs.  This
is because we rely on StopIteration to terminate the token sweep.
(Probably dumb but whatever...)

This was a mess to code, and probably indicates that f90nml has a lot of
crap that needs to be refactored ASAP.

646 of 649 relevant lines covered (99.54%)

1.0 hits per line

Source Files on job 210.8
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 210
  • Travis Job 210.8
  • 8b099a20 on github
  • Prev Job for on master (#209.8)
  • Next Job for on master (#211.8)
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