mirror of
https://github.com/nxtrace/NTrace-core.git
synced 2025-08-12 06:26:39 +00:00
51 lines
970 B
Go
51 lines
970 B
Go
package dn42
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestPTR(t *testing.T) {
|
|
|
|
// example_mis := []string{
|
|
// "sloutravel.com",
|
|
// "memeslou.org",
|
|
// "followsloucity.net",
|
|
// "slouslou.slou",
|
|
// "slouslou8.slou",
|
|
// }
|
|
|
|
// examples := []string{
|
|
|
|
// "1ge.slou.as1299.net",
|
|
// "1ge.slou2.as1299.net",
|
|
// "1ge-slou.as1299.net",
|
|
// "slou-1.as1299.net",
|
|
// "slou.as1299.com",
|
|
// "1ge-snge-6.as1299.net",
|
|
// "c-1.sin.sg.atlas.moeqing.com",
|
|
// "core.hkg1.hk.atlas.moeqing.com",
|
|
// "core.losangles.us.atlas.moeqing.com",
|
|
// }
|
|
|
|
// fmt.Println("容易误匹配的 PTR")
|
|
|
|
// for _, s := range example_mis {
|
|
// if r, err := FindPtrRecord("ptr.csv"); err == nil {
|
|
// fmt.Println(s, r)
|
|
// } else {
|
|
// fmt.Println(s, err)
|
|
// }
|
|
|
|
// }
|
|
// fmt.Println("\n应该正常匹配的 PTR")
|
|
// for _, s := range examples {
|
|
// if r, err := FindPtrRecord("ptr.csv"); err == nil {
|
|
// fmt.Println(s, r)
|
|
// } else {
|
|
// fmt.Println(s, err)
|
|
// }
|
|
|
|
// }
|
|
|
|
}
|