mirror of
https://github.com/slackhq/nebula.git
synced 2025-11-23 00:44:25 +01:00
Public Release
This commit is contained in:
19
dns_server_test.go
Normal file
19
dns_server_test.go
Normal file
@@ -0,0 +1,19 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user