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

uber-go / zap / 1648
97%

Build:
DEFAULT BRANCH: master
Ran 14 Mar 2017 11:12PM UTC
Jobs 2
Files 36
Run time 4s
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
1648

push

travis-ci

web-flow
Expose Buffer pools to third-party encoders (#376)

Zap currently uses an internal package to house its buffer pool, and it returns
all buffers to that pool. This is problematic for two reasons:

1. First, third-party encoders can easily corrupt the pool by keeping a
   reference to a buffer.
2. Second, third-party encoders can't pool their buffers, since zap needs to
   know how to return them to their pools.

This PR introduces a `buffer.Pool` type to solve this problem. Individual
buffers can only be created via a pool, and each buffer keeps a reference to its
pool of origin. This allows zap to continue using a single internal pool, but it
allows third-party encoders to safely pool their buffers too.

2234 of 2303 relevant lines covered (97.0%)

142839.57 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1648.1 14 Mar 2017 11:12PM UTC 0
97.0
Travis Job 1648.1
2 1648.2 14 Mar 2017 11:12PM UTC 0
97.0
Travis Job 1648.2
Source Files on build 1648
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1648
  • c0dfce3b on github
  • Prev Build on master (#1641)
  • Next Build on master (#1655)
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