github.com/iikira/iikira-go-utils@v0.0.0-20230610031953-f2cb11cde33a/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(rd1.Len())
    15  	io.Copy(os.Stdout, multi)
    16  }