Tom Thorogood
2f8cf50b32
Add a HashName benchmark
2018-11-29 10:28:29 +10:30
Yasar Alev
043a442757
nsec3 cover problems ( #804 )
...
* nsec3 cover fix
* nsec3 cover fix test
* nsec3 covered empty intervals
* nsec3 another condition
* nsec3 empty interval wildcard test
* nsec3 empty interval comment
2018-11-13 23:30:58 +00:00
Tom Thorogood
77d95a53d0
Handle empty NSEC3 salt in scanner ( #677 )
...
Fixes #676
2018-05-14 20:07:52 +01:00
Miek Gieben
9cfd42f1df
Tests: add ListenAndServe tests ( #562 )
...
This increases the test coverage as these methods where not tested.
Add some cosmetic changes to the mix.
2017-11-10 10:11:23 +00:00
Miek Gieben
388f6eea29
Tests updates ( #556 )
...
Use :0 for loopback testing. This is more portable between testing environments.
Add testRR that calls NewRR and throws error away - apply it everywhere where needed.
It seems only Go 1.9 can deal with :0 being used. Disable 1.8 in travis.
2017-11-08 10:01:19 +00:00
Roland Bracewell Shoemaker
6ebcb714d3
NSEC/3 Cover+Match cleanup ( #479 )
...
* Initial NSEC cleanup
* Use readable names
* Finish tests
* Use existing functions, simplify hash/zone split
* Make IsSubDomain case insensitive, add tests
* Use internal Split instead of strings.Split
2017-04-12 19:47:48 +01:00
Michael Haro
2fb2a25e84
More test clean up
...
Remove trailing \n from t.Log and t.Error messages as it's unnecessary.
In some instances, combine multiple t.Error()s into one
To provide more consistency across the tests, rename e to err and use %v
as the format arg for errors.
Replace Logf and Errorf with Log and Error when it made sense. For
example t.Errorf("%v", err) to t.Error(err)
2015-02-25 22:14:21 -08:00
Michael Haro
f995f1aff3
Convert tests from being t.Log(..) then t.Fail() to just t.Error(...) as
...
t.Error(...) does both and makes it more clear which messages are errors
vs information log messages.
2015-02-23 17:43:07 -08:00
Miek Gieben
0aa3021a83
Remove all copyright notices
...
Use the central COPYRIGHT file.
2014-09-11 20:57:37 +01:00
Miek Gieben
ec304aeaa7
Split off stuff to package chain
...
Create a resolver package called chain, to keep in the spririt
of Bind, Unbound, Drill and Knot (and maybe others)
2013-12-25 21:00:19 +00:00
Miek Gieben
2c460e62ed
... and in the tests too
2013-12-25 20:09:22 +00:00
Miek Gieben
8c9af25e1f
Fix NSEC3 Proof tests
2013-12-25 19:53:08 +00:00
Miek Gieben
355e3be472
Add NSEC3 NXDOMAIN proof
2013-12-25 19:44:17 +00:00
Miek Gieben
970b2239a1
Add NSEC3 helper function back in
...
I'm going to use this in 'q', but it may came in handy for other
developers too. This is the first ramp up to a full blown Go only
recursive resolver.
2013-12-24 16:52:39 +00:00
Miek Gieben
744f895b6f
Better name
2013-08-25 21:25:02 -07:00