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

uber-go / mapdecode
96%
master: 97%

Build:
Build:
LAST BUILD BRANCH: travis-migrate
DEFAULT BRANCH: master
Repo Added 05 Apr 2017 08:26PM UTC
Files 4
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

LAST BUILD ON BRANCH structRecurse-part_2.0
branch: structRecurse-part_2.0
CHANGE BRANCH
x
Reset
  • structRecurse-part_2.0
  • _start_-otherOption-part_1.0
  • _start_-structRecurse-part_1.0
  • _start_-structRecurse-part_2.0
  • _start_-structRecurse-part_3.0
  • fixTest
  • loose
  • master
  • otherOption-part_1.0
  • readme-travis
  • structRecurse-part_1.0
  • structRecurse-part_3.0
  • travis-migrate
  • v0.2.0
  • v0.3.0
  • v0.3.1
  • v1.0.0
  • yarpc-import

pending completion
28

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

Relevant lines Covered
Build:
Build:
274 RELEVANT LINES 264 COVERED LINES
3.41 HITS PER LINE
Source Files on structRecurse-part_2.0
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
28 structRecurse-part_2.0 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 be... push 19 May 2017 12:22AM UTC willhug travis-ci pending completion  
21 structRecurse-part_2.0 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 be... push 19 May 2017 12:15AM UTC willhug travis-ci pending completion  
19 structRecurse-part_2.0 Apply Field Hooks to Embedded struct fields Summary: This PR modifies the FieldHooks to add support for applying hooks to embedded fields. We do this on Anonymous (embedded) fields in the struct. Test Plan: Wrote test that failed, now it passes. push 19 May 2017 12:14AM UTC willhug travis-ci pending completion  
17 structRecurse-part_2.0 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 be... push 18 May 2017 11:52PM UTC willhug travis-ci pending completion  
See All Builds (53)
  • Repo on GitHub
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

© 2025 Coveralls, Inc