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

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

Build:
DEFAULT BRANCH: master
Ran 14 Mar 2017 11:12PM 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 11:08PM UTC coverage: 97.004% (+0.2%) from 96.826%
1648.1

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%)

66516.7 hits per line

Source Files on job 1648.1
  • Tree
  • List 0
  • Changed 22
  • Source Changed 6
  • Coverage Changed 20
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1648
  • Travis Job 1648.1
  • c0dfce3b on github
  • Prev Job for on master (#1641.1)
  • Next Job for on master (#1655.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