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

uber-go / mapdecode / 18 / 2
96%
master: 97%

Build:
Build:
LAST BUILD BRANCH: travis-migrate
DEFAULT BRANCH: master
Ran 18 May 2017 11:53PM UTC
Files 4
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

18 May 2017 11:51PM UTC coverage: 96.35% (-0.5%) from 96.8%
18.2

Pull #17

travis-ci

web-flow
Refactor fieldHook function

Summary: I was having a hard time reasoning about the fieldHook function
so I did some refactoring to make it easier to add the embedded struct
fields.

- Remove the in-place data value updates (this appears to have been an
optimization, but, it's not necessary and make the code hard to reason
about)
- Extract getting the updates struct into it's own function.
- Extract getting decodable Struct fields into it's own function.
- Extract applying updates to the srcData into it's own function.
- Rename variables to be more explicit
- Don't use the `from` field, which should be equivalent to
srcData.Type()

Test Plan: tests pass
Pull Request #17: Refactor fieldHook function

264 of 274 relevant lines covered (96.35%)

1.14 hits per line

Source Files on job 18.2
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 18
  • Travis Job 18.2
  • 18002331 on github
  • Prev Job for on _start_-structRecurse-part_2.0 (#16.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