Skip to content

Commit 2be9082

Browse files
committed
修改覆盖
1 parent 8eb0936 commit 2be9082

File tree

4 files changed

+91
-49
lines changed

4 files changed

+91
-49
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@
44
*/*.out
55
*/intarray.txt
66
*/*.svg
7-
.idea
7+
.idea
8+
coverage.txt

.idea/workspace.xml

Lines changed: 80 additions & 42 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.travis.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,15 @@ language: go
44
go:
55
- "1.11.x"
66

7+
env:
8+
- GO111MODULE=on
9+
710
before_install:
8-
- go get github.com/stretchr/testify
11+
#- go get github.com/stretchr/testify
912
#- if ! go get code.google.com/p/go.tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi
1013

1114
script:
12-
make;
15+
make test;
16+
17+
after_success:
18+
- bash <(curl -s https://codecov.io/bash)

Makefile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
#
22

3-
.PHONY : build
4-
build : fmt test
5-
@echo "可以提交"
63

74
.PHONY : fmt
85
fmt :
@@ -14,4 +11,4 @@ fmt :
1411
.PHONY : test
1512
test :
1613
@echo "测试代码"
17-
@go test -v ./...
14+
@go test -race -coverprofile=coverage.txt -covermode=atomic ./...

0 commit comments

Comments
 (0)