From 45669655f026a31577f938ee70ae613c2e4af184 Mon Sep 17 00:00:00 2001 From: Máximo Cuadros Date: Mon, 30 Jan 2017 11:40:51 +0100 Subject: test and comments improvements --- repository_test.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'repository_test.go') diff --git a/repository_test.go b/repository_test.go index ead0aa1..7d44a30 100644 --- a/repository_test.go +++ b/repository_test.go @@ -171,6 +171,7 @@ func (s *RepositorySuite) TestDeleteRemote(c *C) { func (s *RepositorySuite) TestPlainInit(c *C) { dir, err := ioutil.TempDir("", "plain-init") + c.Assert(err, IsNil) defer os.RemoveAll(dir) r, err := PlainInit(dir, true) @@ -184,6 +185,7 @@ func (s *RepositorySuite) TestPlainInit(c *C) { func (s *RepositorySuite) TestPlainInitAlreadyExists(c *C) { dir, err := ioutil.TempDir("", "plain-init") + c.Assert(err, IsNil) defer os.RemoveAll(dir) r, err := PlainInit(dir, true) @@ -197,6 +199,7 @@ func (s *RepositorySuite) TestPlainInitAlreadyExists(c *C) { func (s *RepositorySuite) TestPlainOpen(c *C) { dir, err := ioutil.TempDir("", "plain-open") + c.Assert(err, IsNil) defer os.RemoveAll(dir) r, err := PlainInit(dir, false) @@ -210,6 +213,7 @@ func (s *RepositorySuite) TestPlainOpen(c *C) { func (s *RepositorySuite) TestPlainOpenBare(c *C) { dir, err := ioutil.TempDir("", "plain-open") + c.Assert(err, IsNil) defer os.RemoveAll(dir) r, err := PlainInit(dir, true) @@ -223,6 +227,7 @@ func (s *RepositorySuite) TestPlainOpenBare(c *C) { func (s *RepositorySuite) TestPlainOpenNotBare(c *C) { dir, err := ioutil.TempDir("", "plain-open") + c.Assert(err, IsNil) defer os.RemoveAll(dir) r, err := PlainInit(dir, false) @@ -242,6 +247,7 @@ func (s *RepositorySuite) TestPlainOpenNotExists(c *C) { func (s *RepositorySuite) TestPlainClone(c *C) { dir, err := ioutil.TempDir("", "plain-clone") + c.Assert(err, IsNil) defer os.RemoveAll(dir) r, err := PlainClone(dir, false, &CloneOptions{ -- cgit