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

uber-go / mapdecode / 30
96%
master: 97%

Build:
Build:
LAST BUILD BRANCH: travis-migrate
DEFAULT BRANCH: master
Ran 19 May 2017 12:23AM UTC
Jobs 3
Files 4
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

pending completion
30

push

travis-ci

willhug
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

264 of 274 relevant lines covered (96.35%)

3.41 hits per line

Jobs
ID Job ID Ran Files Coverage
1 30.1 19 May 2017 12:23AM UTC 0
96.35
Travis Job 30.1
2 30.2 19 May 2017 12:24AM UTC 0
96.35
Travis Job 30.2
3 30.3 19 May 2017 12:24AM UTC 0
96.35
Travis Job 30.3
Source Files on build 30
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #30
  • 8b7bb8ef on github
  • Prev Build on _start_-structRecurse-part_3.0 (#22)
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