revid: fixed build error in revid_test.go

This commit is contained in:
Saxon 2019-04-10 12:16:51 +09:30
parent f546b9daed
commit 3841b8cb5b
1 changed files with 4 additions and 2 deletions

View File

@ -97,10 +97,10 @@ func (e *tstFlvEncoder) Write(d []byte) (int, error) { return len(d), nil }
// dummyMultiWriter emulates the MultiWriter provided by std lib, so that we // dummyMultiWriter emulates the MultiWriter provided by std lib, so that we
// can access the destinations. // can access the destinations.
type dummyMultiWriter struct { type dummyMultiWriter struct {
dst []io.Writer dst []io.WriteCloser
} }
func newDummyMultiWriter(dst ...io.Writer) io.Writer { func newDummyMultiWriter(dst ...io.WriteCloser) io.WriteCloser {
return &dummyMultiWriter{ return &dummyMultiWriter{
dst: dst, dst: dst,
} }
@ -108,6 +108,8 @@ func newDummyMultiWriter(dst ...io.Writer) io.Writer {
func (w *dummyMultiWriter) Write(d []byte) (int, error) { return len(d), nil } func (w *dummyMultiWriter) Write(d []byte) (int, error) { return len(d), nil }
func (w *dummyMultiWriter) Close() error { return nil }
// TestResetEncoderSenderSetup checks that revid.reset() correctly sets up the // TestResetEncoderSenderSetup checks that revid.reset() correctly sets up the
// revid.encoder slice and the senders the encoders write to. // revid.encoder slice and the senders the encoders write to.
func TestResetEncoderSenderSetup(t *testing.T) { func TestResetEncoderSenderSetup(t *testing.T) {