Merge pull request #297 from github/go-fmt

gofmt testing
This commit is contained in:
Shlomi Noach 2016-10-28 09:29:48 +02:00 committed by GitHub
commit dd6d55c137
3 changed files with 7 additions and 6 deletions

View File

@ -5,8 +5,6 @@
package binlog
import ()
// BinlogReader is a general interface whose implementations can choose their methods of reading
// a binary log file and parsing it into binlog entries
type BinlogReader interface {

View File

@ -17,8 +17,6 @@ import (
"github.com/siddontang/go-mysql/replication"
)
var ()
const (
serverId = 99999
)

View File

@ -4,9 +4,14 @@ set -e
. script/bootstrap
echo "Verifying code is formatted via 'gofmt -s -w go/'"
gofmt -s -w go/
git diff --exit-code --quiet
echo "Building"
script/build
export GITBACKUPS_ENV=test
cd .gopath/src/github.com/github/gh-ost
echo "Running unit tests"
go test ./go/...