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

zigpy / zigpy / 1178 / 2
100%
dev: 100%

Build:
DEFAULT BRANCH: dev
Ran 21 Jul 2020 09:09PM UTC
Files 39
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

21 Jul 2020 09:07PM UTC coverage: 99.98% (+0.001%) from 99.979%
TOXENV=py37

push

travis-ci

web-flow
Rewrite `t.Struct` to use type annotations (#440)

* Rewrite `Struct` to use type annotations instead of the `_fields` list.
Makes `__init__` work as you'd expect with positional and keyword args.

* Revert unnecessary style changes
* Fix `FileImage` after reverting style changes
* Test serialization after setting an attribute
* Bring coverage back to 100%
* Further test mixed `*args` and `**kwargs` in `t.Struct.__init__`
* Fully implement and test `t.Struct` with field skipping
* Relax object creation restrictions to make all unit tests pass untouched
* Test struct attribute assignment as well as the `replace` method
* Fix and test some serialization corner cases
* Increase test coverage and fix bug with empty skipped fields
* Remove unnecessary typing.Union test case
* Fix a few more struct corner cases with equality and `t.Optional`
* Rename `StructField.skip_if` to `StructField.requires`
* Reorganize `struct` to improve clarity
* Properly handle struct subclassing
* Fix missed old-style structs and explicitly check for them in the future
* Bring coverage back to 100% by actually testing conflicting types
* Add type annotations

5011 of 5012 relevant lines covered (99.98%)

1.0 hits per line

Source Files on job 1178.2 (TOXENV=py37)
  • Tree
  • List 0
  • Changed 10
  • Source Changed 10
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1124
  • Travis Job 1178.2
  • 41986610 on github
  • Prev Job for TOXENV=py37 on dev (#1167.2)
  • Next Job for TOXENV=py37 on dev (#1185.2)
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