Across donut, split, nimble some code cleanup

This commit is contained in:
Harshavardhana
2015-07-06 21:54:00 -07:00
parent 7be35915bc
commit 3622fbc87d
12 changed files with 158 additions and 211 deletions

View File

@@ -62,11 +62,11 @@ func (s *MySuite) TestFileSplitJoin(c *C) {
defer devnull.Close()
var reader io.Reader
reader, err = split.JoinFiles(".", "ERROR")
c.Assert(err, Not(IsNil))
reader = split.JoinFiles(".", "ERROR")
c.Assert(reader, IsNil)
reader, err = split.JoinFiles(".", "TESTPREFIX")
c.Assert(err, IsNil)
reader = split.JoinFiles(".", "TESTPREFIX")
c.Assert(reader, Not(IsNil))
_, err = io.Copy(devnull, reader)
c.Assert(err, IsNil)
}