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

TykTechnologies / tyk / 3172

Build:
DEFAULT BRANCH: master
Ran 04 Oct 2017 05:42PM UTC
Jobs 1
Files 84
Run time 8s
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
3172

push

travis-ci

buger
all: clean up and simplify a bunch of code

First, we know that in the versions map, the key will always be equal to
value.Name. The docs don't explicitly state this, but other parts of the
code such as elsewhere in the gateway and the dashboard use the two
interchangeably.

Do the same in the API definition loader. It was caching both the key
and value in the request's context. Cache only the value. We only ever
needed to cache the version key here, and it won't be useful in the
future, so remove the machinery too.

While at it, collapse some identical switch cases and make
ParseDefinition take a reader, since a string is not necessary.

Finally, remove a test API definition file I recently introduced by
mistake.

6098 of 13272 relevant lines covered (45.95%)

0.5 hits per line

Jobs
ID Job ID Ran Files Coverage
2 3172.2 (LATEST_GO=true) 04 Oct 2017 05:42PM UTC 0
45.95
Travis Job 3172.2
Source Files on build 3172
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #3172
  • e2e6bed6 on github
  • Prev Build on master (#3165)
  • Next Build on master (#3182)
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