(c *C)
| 26 | } |
| 27 | |
| 28 | func (s *TempFileSuite) TestTempFileWithPath(c *C) { |
| 29 | f, err := s.FS.TempFile("foo", "bar") |
| 30 | c.Assert(err, IsNil) |
| 31 | c.Assert(f.Close(), IsNil) |
| 32 | |
| 33 | c.Assert(strings.HasPrefix(f.Name(), s.FS.Join("foo", "bar")), Equals, true) |
| 34 | } |
| 35 | |
| 36 | func (s *TempFileSuite) TestTempFileFullWithPath(c *C) { |
| 37 | f, err := s.FS.TempFile("/foo", "bar") |