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

uber-go / zap / 1644 / 1
97%
master: 97%

Build:
Build:
LAST BUILD BRANCH: license
DEFAULT BRANCH: master
Ran 14 Mar 2017 10:42PM UTC
Files 36
Run time 2s
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

14 Mar 2017 10:38PM UTC coverage: 96.832% (-0.2%) from 97.004%
1644.1

push

travis-ci

akshayjshah
Expose Buffer pools to third-party encoders

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.

2231 of 2304 relevant lines covered (96.83%)

70944.04 hits per line

Source Files on job 1644.1
  • Tree
  • List 0
  • Changed 19
  • Source Changed 2
  • Coverage Changed 19
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1644
  • Travis Job 1644.1
  • f3b62e97 on github
  • Prev Job for on ajs-buf (#1642.1)
  • Next Job for on ajs-buf (#1646.1)
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