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

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

Build:
DEFAULT BRANCH: master
Ran 16 Dec 2017 11:44AM 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

16 Dec 2017 11:43AM UTC coverage: 99.73% (+0.01%) 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 afterwards 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?

369 of 370 relevant lines covered (99.73%)

16.45 hits per line

Source Files on job 150.1 (2.3.4, CI=true)
  • Tree
  • List 0
  • Changed 5
  • Source Changed 2
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 150
  • Travis Job 150.1
  • bde8e4a1 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