Simarpreet Singh
|
177a2b0ad9
|
Add cache tests (fanal#46)
* docker_test: Do not pass nil context
Ref: https://github.com/golang/go/blob/master/src/context/context.gofanal#L37:L38
Instead pass context.TODO()
Signed-off-by: Simarpreet Singh <simar@linux.com>
* cache_test: Add happy path for Get() and Set()
Signed-off-by: Simarpreet Singh <simar@linux.com>
* cache_test: Add happy path for clear
Signed-off-by: Simarpreet Singh <simar@linux.com>
* main: Rename os -> osFound to avoid shadowing
Signed-off-by: Simarpreet Singh <simar@linux.com>
* cache_test: Assert that cache is indeed cleared up.
Signed-off-by: Simarpreet Singh <simar@linux.com>
|
2019-11-19 10:07:12 +02:00 |
|