~dricottone/image2ascii

6bbfcf8c2ff74ccaf97bdb9d5d11ddbd07df278b — qeesung 6 years ago adffe23
reformat the code
4 files changed, 13 insertions(+), 14 deletions(-)

M .codacy.yml
M .travis.yml
M ascii/ascii_test.go
M image2ascii_test.go
M .codacy.yml => .codacy.yml +2 -2
@@ 1,4 1,4 @@
---
exclude_paths:
  - '*.md'
  - 'vender/**/*'
- '*.md'
- 'vender/**/*'

M .travis.yml => .travis.yml +9 -9
@@ 1,19 1,19 @@
language: go

os:
  - linux
  - osx
- linux
- osx

go:
  - "1.8"
  - "1.10.x"
  - "1.11.x"
  - "tip"
  
- "1.8"
- "1.10.x"
- "1.11.x"
- "tip"

before_install:
  - go get github.com/mattn/goveralls
- go get github.com/mattn/goveralls
script:
  - $GOPATH/bin/goveralls -service=travis-ci
- $GOPATH/bin/goveralls -service=travis-ci

deploy:
  provider: releases

M ascii/ascii_test.go => ascii/ascii_test.go +0 -1
@@ 114,7 114,6 @@ func TestReverseSlice(t *testing.T) {
		fmt.Sprintf("%+v reversed should equal to %+v", s, expectedReversedSlice))
}


// ExampleConvertPixelToASCII is a example convert pixel to ascii char
func ExampleConvertPixelToASCII() {
	converter := NewPixelConverter()

M image2ascii_test.go => image2ascii_test.go +2 -2
@@ 8,7 8,7 @@ import (
func TestParseEmptyFilenameOptions(t *testing.T) {
	assertions := assert.New(t)
	imageFilename = ""
	_, err :=parseOptions()
	_, err := parseOptions()
	assertions.True(err != nil)
}



@@ 20,7 20,7 @@ func TestParseOptions(t *testing.T) {
	colored = false
	fixedHeight = 100
	fixedWidth = 100
	opt, err :=parseOptions()
	opt, err := parseOptions()
	assertions.True(err == nil)
	assertions.Equal(ratio, opt.Ratio)
	assertions.False(fitScreen)