Skip to content

Commit

Permalink
add the result from go report, and fixed several warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
tamada committed Mar 22, 2019
1 parent 5491aab commit 7dff2f6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[![Build Status](https://travis-ci.org/tamada/rrh.svg?branch=master)](https://travis-ci.org/tamada/rrh)
[![Coverage Status](https://coveralls.io/repos/github/tamada/rrh/badge.svg?branch=master)](https://coveralls.io/github/tamada/rrh?branch=master)
[![codebeat badge](https://codebeat.co/badges/15e04551-d448-4ad3-be1d-e98b1e586f1a)](https://codebeat.co/projects/github-com-tamada-rrh-master)
[![go report](https://goreportcard.com/badge/github.com/tamada/rrh)](https://goreportcard.com/report/github.com/tamada/rrh)
[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)

# RRH
Expand Down
2 changes: 1 addition & 1 deletion common/database_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func TestCreateRepository(t *testing.T) {
t.Error(err1.Error())
}

var r2, err2 = db.CreateRepository("somerepo", "unknown", []Remote{Remote{"name1", "url1"}, Remote{"name2", "url2"}})
var r2, err2 = db.CreateRepository("somerepo", "unknown", []Remote{{"name1", "url1"}, {"name2", "url2"}})
if r2 == nil && err2 != nil {
t.Error("somerepo: cannot create repository")
}
Expand Down
2 changes: 1 addition & 1 deletion list/list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func TestFindResults(t *testing.T) {
targets []string
want []ListResult
}{
{[]string{"group1"}, []ListResult{ListResult{"group1", "desc1", []Repo{Repo{"repo1", "path1", []common.Remote{}}}}}},
{[]string{"group1"}, []ListResult{ListResult{"group1", "desc1", []Repo{{"repo1", "path1", []common.Remote{}}}}}},
{[]string{"group2"}, []ListResult{ListResult{"group2", "desc2", []Repo{}}}},
}

Expand Down

0 comments on commit 7dff2f6

Please sign in to comment.