mirror of https://bitbucket.org/ausocean/av.git
revid: fixed build error in revid_test.go
This commit is contained in:
parent
f546b9daed
commit
3841b8cb5b
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue