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
d0927c2e
Commit
d0927c2e
authored
Jan 23, 2019
by
Anton Petrov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: enable code coverage, update travis.yml and Makefile
parent
74525f76
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
3 deletions
+19
-3
.travis.yml
.travis.yml
+5
-2
Makefile
Makefile
+10
-0
codecov.yml
codecov.yml
+3
-0
pool_test.go
pool_test.go
+1
-1
No files found.
.travis.yml
View file @
d0927c2e
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 @
d0927c2e
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
codecov.yml
0 → 100644
View file @
d0927c2e
coverage
:
range
:
"
50...100"
comment
:
off
pool_test.go
View file @
d0927c2e
...
...
@@ -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