Factor out testing error checks
This commit is contained in:
1 parent
156314a802
commit
d84226cc31
5 files changed
+23
-42
No files matched your search
@@ -0,0 +1,11 @@
|
||||
package weavedns
|
||||
|
||||
import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func assertNoErr(t *testing.T, err error) {
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user