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

IAMconsortium / pyam / 661 / 3
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 12 Feb 2019 02:08PM UTC
Files 11
Run time 1s
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

12 Feb 2019 01:54PM UTC coverage: 84.029% (+0.04%) from 83.987%
PYENV=py37

push

travis-ci

gidden
Extend the `utils.find_depth()` function to return depth (#192)

* add test to find depth

* extend `find_depth()` for returning depth (alternative to assert level)

* add to release notes

* rename internal function

* one more refactoring of internal `_find_depth()`

* move regexp-escaping to own function

* rework unit test for `find_depth()` to illustrate `startswith`behaviour

* change behaviour of `find_depth()` to only exclude `s` if  at start of a variable

* add a test for two `*` in `pattern_match()`

* add explicit test for behaviour of only counting depth after `s`

* only remove last wildcard in `find_depth()`

* use `find_depth()` directly in `_apply_filters()`

* rework docstring

* simplify internal functions and return `None` for `s not in variable`

as requested by @gidden

* refactor existing tests in `test_utils.py`

* migrate tests related to `find_depth()` to `test_utils.py`

as requested by @gidden

* explicitly only match variables starting with `s`

* return `False` for `find_depth()` with `level` if `s` is not in variable

* rewrite docstrings for `find_depth()`

as requested by @gidden

* extend tests for `find_depth()` corner case

* move check for `None` into `test` functions for Python 3.7 test failures

* exclude pep8 on named lambdas (E731) for stickler

* even more concise implementation of `find_depth` internals

as suggested by @gidden

* one last little clean-up to get it to a one-liner

1610 of 1916 relevant lines covered (84.03%)

0.84 hits per line

Source Files on job 661.3 (PYENV=py37)
  • Tree
  • List 0
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 166
  • Travis Job 661.3
  • a649e1d8 on github
  • Prev Job for PYENV=py37 on master (#650.1)
  • Next Job for PYENV=py37 on master (#668.1)
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