mirror of
https://github.com/slackhq/nebula.git
synced 2024-11-10 17:24:37 +08:00
20 lines
312 B
Go
20 lines
312 B
Go
|
package nebula
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
|
||
|
"github.com/miekg/dns"
|
||
|
)
|
||
|
|
||
|
func TestParsequery(t *testing.T) {
|
||
|
//TODO: This test is basically pointless
|
||
|
hostMap := &HostMap{}
|
||
|
ds := newDnsRecords(hostMap)
|
||
|
ds.Add("test.com.com", "1.2.3.4")
|
||
|
|
||
|
m := new(dns.Msg)
|
||
|
m.SetQuestion("test.com.com", dns.TypeA)
|
||
|
|
||
|
//parseQuery(m)
|
||
|
}
|