Clean up dead code
This commit is contained in:
parent
aab210fe88
commit
d7f4f61777
|
@ -279,42 +279,3 @@ func TestZoneParsing(t *testing.T) {
|
|||
delta := time.Now().UnixNano() - start
|
||||
t.Logf("%d RRs parsed in %.2f s (%.2f RR/s)", i, float32(delta)/1e9, float32(i)/(float32(delta)/1e9))
|
||||
}
|
||||
|
||||
/*
|
||||
func TestZoneParsingBigZonePrint(t *testing.T) {
|
||||
f, err := os.Open("t/test.zone.miek.nl.signed")
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
defer f.Close()
|
||||
start := time.Now().UnixNano()
|
||||
to := ParseZone(f)
|
||||
var i int
|
||||
for x := range to {
|
||||
if x.RR != nil {
|
||||
println(x.RR.String())
|
||||
}
|
||||
// t.Logf("%s\n", x.RR)
|
||||
i++
|
||||
}
|
||||
delta := time.Now().UnixNano() - start
|
||||
t.Logf("%d RRs parsed in %.2f s (%.2f RR/s)", i, float32(delta)/1e9, float32(i)/(float32(delta)/1e9))
|
||||
}
|
||||
|
||||
func TestZoneParsingBigZone(t *testing.T) {
|
||||
f, err := os.Open("t/test.zone.miek.nl.signed")
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
defer f.Close()
|
||||
start := time.Now().UnixNano()
|
||||
to := ParseZone(f)
|
||||
var i int
|
||||
for x := range to {
|
||||
x = x
|
||||
i++
|
||||
}
|
||||
delta := time.Now().UnixNano() - start
|
||||
t.Logf("%d RRs parsed in %.2f s (%.2f RR/s)", i, float32(delta)/1e9, float32(i)/(float32(delta)/1e9))
|
||||
}
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue