update: try to add codecov coverage

This commit is contained in:
Weilin Shi 2017-09-20 09:03:13 +08:00
parent 955f985f22
commit dde42d81d9
2 changed files with 10 additions and 0 deletions

View File

@ -3,5 +3,8 @@ language: go
go:
- 1.9
script:
- go test -coverprofile=coverage.txt -covermode=atomic
after_success:
- bash <(curl -s https://codecov.io/bash)

View File

@ -24,6 +24,13 @@ func TestConversionGray(t *testing.T) {
if err := eq(black1, black2); err != nil {
t.Fatal(err)
}
var gray1 color.Color = hsva{h: 1.0, s: 0.0, v: 0.8, a: uint8(255)}
var gray2 color.Color = color.RGBA{R: uint8(204), G: uint8(204), B: uint8(204), A: uint8(255)}
if err := eq(gray1, gray2); err != nil {
t.Fatal(err)
}
}
func TestConversionRGB(t *testing.T) {