tuntap test

This commit is contained in:
impact-eintr
2022-11-22 15:04:29 +08:00
parent af8c2fbd42
commit ff4cde9809
12 changed files with 754 additions and 0 deletions

15
tcpip/buffer/view_test.go Normal file
View File

@@ -0,0 +1,15 @@
package buffer
import (
"fmt"
"testing"
)
func TestBaseView(t *testing.T) {
buffer1 := []byte("hello world")
buffer2 := []byte("test test test")
bv1 := NewViewFromBytes(buffer1)
bv2 := NewViewFromBytes(buffer2)
views := NewVectorisedView(2, []View{bv1, bv2})
fmt.Println(string(views.ToView()))
}