File tree Expand file tree Collapse file tree 6 files changed +35
-19
lines changed
Expand file tree Collapse file tree 6 files changed +35
-19
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 1- server /app /secret.yaml
2- bot /app-secrets.yaml
3- bot /app-secrets. * .yaml
41vendor
5- .vscode
62release
3+ coverage.txt
Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ require (
1111require (
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
Original file line number Diff line number Diff line change @@ -48,6 +48,8 @@ github.com/otiai10/mint v1.3.0/go.mod h1:F5AjcsTsWUqX+Na9fpHb52P8pcRX2CI6A3ctIT9
4848github.com/otiai10/mint v1.3.1 /go.mod h1:/yxELlJQ0ufhjUwhshSj+wFjZ78CnZ48/1wtmBH1OTc =
4949github.com/otiai10/mint v1.3.2 h1:VYWnrP5fXmz1MXvjuUvcBrXSjGE6xjON+axB/UrpO3E =
5050github.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 =
5153github.com/otiai10/opengraph v1.1.3 h1:4RoX4yckU/eaj34XxwoyNFvuPVrmjcUHMyAgjJL1Pwg =
5254github.com/otiai10/opengraph v1.1.3 /go.mod h1:ZMbPcfiSRSsg3+yrWZCXrgYL6kEK4KpH4GG1iyIvEXs =
5355github.com/pelletier/go-buffruneio v0.2.0 /go.mod h1:JkE26KsDizTr40EUHkXVtNPvgGtbSNq5BcowyYOWdKo =
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments