Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
p2p
go-buffer-pool
Commits
a8d83123
Unverified
Commit
a8d83123
authored
Jan 23, 2019
by
Steven Allen
Committed by
GitHub
Jan 23, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6 from petroav/enable-tests
Enable tests
parents
058210c5
d0927c2e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
3 deletions
+22
-3
.travis.yml
.travis.yml
+5
-2
Makefile
Makefile
+10
-0
README.md
README.md
+3
-0
codecov.yml
codecov.yml
+3
-0
pool_test.go
pool_test.go
+1
-1
No files found.
.travis.yml
View file @
a8d83123
sudo
:
false
os
:
-
linux
language
:
go
go
:
-
1.
9
.x
-
1.
11
.x
install
:
-
make deps
...
...
@@ -17,3 +18,5 @@ cache:
notifications
:
email
:
false
env
:
GOTFLAGS="-race"
Makefile
0 → 100644
View file @
a8d83123
gx
:
go get github.com/whyrusleeping/gx
go get github.com/whyrusleeping/gx-go
deps
:
gx
gx
--verbose
install
--global
gx-go rewrite
publish
:
gx-go rewrite
--undo
README.md
View file @
a8d83123
...
...
@@ -2,6 +2,9 @@ go-buffer-pool
==================
[
![
](
https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square
)
](https://protocol.ai)
[
![
](
https://img.shields.io/badge/project-libp2p-blue.svg?style=flat-square
)
](https://libp2p.io/)
[
![
](
https://img.shields.io/badge/freenode-%23libp2p-blue.svg?style=flat-square
)
](https://webchat.freenode.net/?channels=%23libp2p)
[
![codecov
](
https://codecov.io/gh/libp2p/go-buffer-pool/branch/master/graph/badge.svg
)
](https://codecov.io/gh/libp2p/go-buffer-pool)
[
![Travis CI
](
https://travis-ci.org/libp2p/go-buffer-pool.svg?branch=master
)
](https://travis-ci.org/libp2p/go-buffer-pool)
> A variable size buffer pool for go.
...
...
codecov.yml
0 → 100644
View file @
a8d83123
coverage
:
range
:
"
50...100"
comment
:
off
pool_test.go
View file @
a8d83123
...
...
@@ -27,7 +27,7 @@ func TestAllocations(t *testing.T) {
runtime
.
GC
()
runtime
.
ReadMemStats
(
&
m2
)
frees
:=
m2
.
Frees
-
m1
.
Frees
if
frees
>
100
{
if
frees
>
100
0
{
t
.
Fatalf
(
"expected less than 100 frees after GC, got %d"
,
frees
)
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment