mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-04-03 21:27:37 +03:00
Add unit tests for sources.go
Tests cover most of the cache and download related code paths and specify the expected result of various starting states and external failure modes. Where the current code's behaviour doesn't match a test's expectations, the test is disabled and annotated with a TODO until it can be fixed. Added dependency on `github.com/powerman/check` and ran `go mod vendor`.
This commit is contained in:
parent
503bfb877b
commit
af0629856c
61 changed files with 7200 additions and 0 deletions
3
.gitattributes
vendored
3
.gitattributes
vendored
|
@ -1,3 +1,6 @@
|
|||
* text=auto
|
||||
*.go text diff=golang
|
||||
*.bat text eol=crlf
|
||||
|
||||
# Ensure test fixtures don't get mangled
|
||||
**/testdata/** -text
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue