github.com/Asutorufa/yuhaiin@v0.3.6-0.20240502055049-7984da7023a0/cmd/android/main/main_test.go (about) 1 package main 2 3 import ( 4 "encoding/json" 5 "testing" 6 7 yuhaiin "github.com/Asutorufa/yuhaiin/cmd/android" 8 ) 9 10 func TestMain(m *testing.T) { 11 a := &yuhaiin.Opts{ 12 DNS: &yuhaiin.DNSSetting{ 13 Local: &yuhaiin.DNS{}, 14 Remote: &yuhaiin.DNS{}, 15 Bootstrap: &yuhaiin.DNS{}, 16 }, 17 18 TUN: &yuhaiin.TUN{}, 19 } 20 21 d, _ := json.MarshalIndent(a, "", " ") 22 m.Log(string(d)) 23 } 24 25 func TestShr(t *testing.T) { 26 b := 2543 27 t.Log(b >> 8) 28 }