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

exAspArk / batch-loader / 148
99%

Build:
DEFAULT BRANCH: master
Ran 05 Dec 2017 12:56PM UTC
Jobs 1
Files 9
Run time 1s
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
148

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?

21 of 21 new or added lines in 2 files covered. (100.0%)

358 of 359 relevant lines covered (99.72%)

15.53 hits per line

Jobs
ID Job ID Ran Files Coverage
1 148.1 (2.3.4, CI=true) 05 Dec 2017 12:56PM UTC 0
99.72
Travis Job 148.1
Source Files on build 148
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #148
  • Pull Request #14
  • PR Base - master (#146)
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