github.com/fzfile/BaiduPCS-Go@v0.0.0-20200606205115-4408961cf336/requester/rio/multi_test.go (about)

     1  package rio
     2  
     3  import (
     4  	"fmt"
     5  	"io"
     6  	"os"
     7  	"strings"
     8  	"testing"
     9  )
    10  
    11  func TestMultiReaderLen(t *testing.T) {
    12  	rd1, rd2 := strings.NewReader("asdkfljalf"), strings.NewReader("---asva sdf")
    13  	multi := MultiReaderLen(rd1, rd2)
    14  	fmt.Println(multi.Len())
    15  	io.Copy(os.Stdout, multi)
    16  }