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

TykTechnologies / tyk / 3172 / 2

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

04 Oct 2017 05:39PM UTC coverage: 45.946% (-0.04%) from 45.984%
LATEST_GO=true

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

Source Files on job 3172.2 (LATEST_GO=true)
  • Tree
  • List 0
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 3172
  • Travis Job 3172.2
  • e2e6bed6 on github
  • Prev Job for LATEST_GO=true on master (#3165.2)
  • Next Job for LATEST_GO=true on master (#3182.2)
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