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

aperezdc / omni / 9
82%

Build:
DEFAULT BRANCH: master
Ran 19 Nov 2014 12:01PM UTC
Jobs 2
Files 8
Run time 5s
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
9

push

travis-ci

aperezdc
Infer route name from function name in decorator

The previous approach was to patch up the route's "name" attribute later on,
when enumerating the routes (at Routes.routes), but that would not cover the
case in whicha route is used directly without enumerating it, e.g.:

  class App(Dispatcher):
    @get("/foo")
    def foo(self, request):
      return ""

    def __init__(self):
      super(App, self).__init__()
      self.add_route(self.foo)  # <-- Direct route usage

By inferring the name in the recorator, these kind of uses will always work.

364 of 410 relevant lines covered (88.78%)

1.78 hits per line

Jobs
ID Job ID Ran Files Coverage
1 9.1 19 Nov 2014 12:01PM UTC 0
88.78
Travis Job 9.1
2 9.2 19 Nov 2014 12:01PM UTC 0
88.78
Travis Job 9.2
Source Files on build 9
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #9
  • 59e98721 on github
  • Prev Build on master (#8)
  • Next Build on master (#10)
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