You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
444 B
23 lines
444 B
3 years ago
|
package durl
|
||
3 years ago
|
|
||
|
import (
|
||
3 years ago
|
v20210726 "github.com/dtapps/go-library/durl/v20210726"
|
||
3 years ago
|
"log"
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func TestLenCode(t *testing.T) {
|
||
|
u := "https://www.dtapp.net"
|
||
3 years ago
|
log.Println(v20210726.LenCode(u))
|
||
3 years ago
|
}
|
||
|
|
||
|
func TestDeCode(t *testing.T) {
|
||
|
u := "https%3A%2F%2Fwww.dtapp.net"
|
||
3 years ago
|
log.Println(v20210726.DeCode(u))
|
||
3 years ago
|
}
|
||
|
|
||
|
func TestParseQuery(t *testing.T) {
|
||
|
u := "https://api.dtapp.net/v8/ip/qqwry?ip=113.118.170.199"
|
||
3 years ago
|
log.Println(v20210726.ParseQuery(u))
|
||
3 years ago
|
}
|