diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2020-07-06 01:52:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-06 01:52:08 +0200 |
commit | a9899594dfdde8bbfdf35fc7e8c2fc3ec5aa7fdb (patch) | |
tree | e7b28b456ef3ed90eafc026b506786bea5df179e /internal/revision | |
parent | 9ac753f4afb36feb1a1c22214c16e853db54aa00 (diff) | |
parent | f9cf9a99fd51bff8e002900a3a73d117ba54c887 (diff) | |
download | go-git-a9899594dfdde8bbfdf35fc7e8c2fc3ec5aa7fdb.tar.gz |
Merge pull request #117 from cristaloleg/fix-goreportcard
fix goreportcard warnings
Diffstat (limited to 'internal/revision')
-rw-r--r-- | internal/revision/parser_test.go | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/internal/revision/parser_test.go b/internal/revision/parser_test.go index fe45228..4bb007f 100644 --- a/internal/revision/parser_test.go +++ b/internal/revision/parser_test.go @@ -96,8 +96,8 @@ func (s *ParserSuite) TestParseWithValidExpression(c *C) { TildePath{3}, }, "@{2016-12-16T21:42:47Z}": []Revisioner{AtDate{tim}}, - "@{1}": []Revisioner{AtReflog{1}}, - "@{-1}": []Revisioner{AtCheckout{1}}, + "@{1}": []Revisioner{AtReflog{1}}, + "@{-1}": []Revisioner{AtCheckout{1}}, "master@{upstream}": []Revisioner{ Ref("master"), AtUpstream{}, @@ -211,12 +211,12 @@ func (s *ParserSuite) TestParseAtWithValidExpression(c *C) { tim, _ := time.Parse("2006-01-02T15:04:05Z", "2016-12-16T21:42:47Z") datas := map[string]Revisioner{ - "": Ref("HEAD"), - "{1}": AtReflog{1}, - "{-1}": AtCheckout{1}, - "{push}": AtPush{}, - "{upstream}": AtUpstream{}, - "{u}": AtUpstream{}, + "": Ref("HEAD"), + "{1}": AtReflog{1}, + "{-1}": AtCheckout{1}, + "{push}": AtPush{}, + "{upstream}": AtUpstream{}, + "{u}": AtUpstream{}, "{2016-12-16T21:42:47Z}": AtDate{tim}, } |