Example #1
0
func (s *WriterSuite) SetUpTest(c *gc.C) {
	s.IsolationSuite.SetUpTest(c)

	s.stub = &testing.Stub{}
	s.wBuffer = new(bytes.Buffer)
	s.writer = &filetesting.StubWriter{
		Stub:        s.stub,
		ReturnWrite: s.wBuffer,
	}
	s.hBuffer = new(bytes.Buffer)
	s.hash = filetesting.NewStubHash(s.stub, s.hBuffer)
}
Example #2
0
func (s *FingerprintSuite) SetUpTest(c *gc.C) {
	s.stub = &testing.Stub{}
	s.hash = filetesting.NewStubHash(s.stub, nil)
}