|
|
@ -53,9 +53,9 @@ func (s *MySuite) TestSplitStream(c *C) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func (s *MySuite) TestFileSplitJoin(c *C) { |
|
|
|
func (s *MySuite) TestFileSplitJoin(c *C) { |
|
|
|
err := split.FileWithPrefix("test-data/TESTFILE", 1024, "TESTPREFIX") |
|
|
|
err := split.FileWithPrefix("testdata/TESTFILE", 1024, "TESTPREFIX") |
|
|
|
c.Assert(err, IsNil) |
|
|
|
c.Assert(err, IsNil) |
|
|
|
err = split.FileWithPrefix("test-data/TESTFILE", 1024, "") |
|
|
|
err = split.FileWithPrefix("testdata/TESTFILE", 1024, "") |
|
|
|
c.Assert(err, Not(IsNil)) |
|
|
|
c.Assert(err, Not(IsNil)) |
|
|
|
|
|
|
|
|
|
|
|
devnull, err := os.OpenFile(os.DevNull, 2, os.ModeAppend) |
|
|
|
devnull, err := os.OpenFile(os.DevNull, 2, os.ModeAppend) |
|
|
|