Skip to content

Commit 8a83043

Browse files
committed
Enable test again
1 parent 890874a commit 8a83043

File tree

6 files changed

+35
-19
lines changed

6 files changed

+35
-19
lines changed

.github/workflows/go.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ jobs:
2626
- name: Build
2727
run: go build -v .
2828

29-
# - name: Test
30-
# run: go test -v -cover -race -coverprofile=coverage.txt -covermode=atomic
31-
# - name: Upload coverage
32-
# uses: codecov/codecov-action@v1
33-
# with:
34-
# file: ./coverage
35-
# verbose: true
29+
- name: Test
30+
run: go test ./... -v -cover -race -coverprofile=coverage.txt -covermode=atomic
31+
- name: Upload coverage
32+
uses: codecov/codecov-action@v1
33+
with:
34+
file: ./coverage.txt
35+
verbose: true

.gitignore

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
server/app/secret.yaml
2-
bot/app-secrets.yaml
3-
bot/app-secrets.*.yaml
41
vendor
5-
.vscode
62
release
3+
coverage.txt

cli/all_test.go

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
package cli
2+
3+
import (
4+
"image"
5+
"io"
6+
"testing"
7+
8+
. "github.com/otiai10/mint"
9+
)
10+
11+
type PseudoRenderer struct{}
12+
13+
func (r PseudoRenderer) Render(w io.Writer, img image.Image) error {
14+
return nil
15+
}
16+
17+
func (r PseudoRenderer) SetScale(s float64) error {
18+
return nil
19+
}
20+
21+
func TestAmesh(t *testing.T) {
22+
err := Amesh(PseudoRenderer{}, true, true)
23+
Expect(t, err).ToBe(nil)
24+
}

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ require (
1111
require (
1212
github.com/mattn/go-sixel v0.0.1 // indirect
1313
github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646 // indirect
14-
github.com/otiai10/mint v1.3.2 // indirect
14+
github.com/otiai10/mint v1.4.1 // indirect
1515
github.com/soniakeys/quant v1.0.0 // indirect
1616
golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2 // indirect
1717
golang.org/x/sys v0.0.0-20210414055047-fe65e336abe0 // indirect

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ github.com/otiai10/mint v1.3.0/go.mod h1:F5AjcsTsWUqX+Na9fpHb52P8pcRX2CI6A3ctIT9
4848
github.com/otiai10/mint v1.3.1/go.mod h1:/yxELlJQ0ufhjUwhshSj+wFjZ78CnZ48/1wtmBH1OTc=
4949
github.com/otiai10/mint v1.3.2 h1:VYWnrP5fXmz1MXvjuUvcBrXSjGE6xjON+axB/UrpO3E=
5050
github.com/otiai10/mint v1.3.2/go.mod h1:/yxELlJQ0ufhjUwhshSj+wFjZ78CnZ48/1wtmBH1OTc=
51+
github.com/otiai10/mint v1.4.1 h1:HOVBfKP1oXIc0wWo9hZ8JLdZtyCPWqjvmFDuVZ0yv2Y=
52+
github.com/otiai10/mint v1.4.1/go.mod h1:gifjb2MYOoULtKLqUAEILUG/9KONW6f7YsJ6vQLTlFI=
5153
github.com/otiai10/opengraph v1.1.3 h1:4RoX4yckU/eaj34XxwoyNFvuPVrmjcUHMyAgjJL1Pwg=
5254
github.com/otiai10/opengraph v1.1.3/go.mod h1:ZMbPcfiSRSsg3+yrWZCXrgYL6kEK4KpH4GG1iyIvEXs=
5355
github.com/pelletier/go-buffruneio v0.2.0/go.mod h1:JkE26KsDizTr40EUHkXVtNPvgGtbSNq5BcowyYOWdKo=

main_test.go

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)