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

exAspArk / batch-loader / 149 / 1
99%
master: 99%

Build:
DEFAULT BRANCH: master
Ran 07 Dec 2017 10:40AM UTC
Files 9
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

07 Dec 2017 10:39AM UTC coverage: 99.725% (+0.005%) from 99.72%
2.3.4, CI=true

Pull #14

travis-ci

web-flow
Do not depend on #method_missing for #respond_to?

After the object is batch loaded, the original method_missing
implementation is not called anymore after a `__replace_with!` call.

When `respond_to?` is called on the loaded object afterwords this will
call `#method_missing` on the loaded object. However, the loaded object
can itself have an implementation of method_missing, in this case only
to determine if it responds to a symbol.

Other than the current implementation, the `#method_missing` could be
listed in `IMPLEMENTED_INSTANCE_METHODS`, so it won't be rerouted to the
lazy loaded object. This however calls `__sync!` again, with the
overhead that entails.

Detected this behaviour first for #4, but that was the wrong patch.
Pull Request #14: Do not depend on #method_missing for #respond_to?

362 of 363 relevant lines covered (99.72%)

15.89 hits per line

Source Files on job 149.1 (2.3.4, CI=true)
  • Tree
  • List 0
  • Changed 5
  • Source Changed 3
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 149
  • Travis Job 149.1
  • 0a6c2394 on github
  • Prev Job for 2.3.4, CI=true on master (#146.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