mirror of
https://github.com/safedep/pmg.git
synced 2026-08-03 07:24:09 +02:00
feat: Add malysis cache implementation with proxy flow integration (#346)
* feat: Add malysis cache implementation with proxy flow integration * fix: Code review fixes
This commit is contained in:
@@ -266,6 +266,16 @@ func TestConfigureSandbox(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestLocalDBLocation(t *testing.T) {
|
||||
dir := t.TempDir()
|
||||
t.Setenv("PMG_CACHE_DIR", dir)
|
||||
initConfig()
|
||||
|
||||
cfg := Get()
|
||||
assert.Equal(t, filepath.Join(dir, "localdb"), cfg.LocalDBDir())
|
||||
assert.Equal(t, "pmg.db", cfg.LocalDBFileName())
|
||||
}
|
||||
|
||||
func TestWriteTemplateConfigMergesExistingConfig(t *testing.T) {
|
||||
tmpDir := t.TempDir()
|
||||
t.Setenv("PMG_CONFIG_DIR", tmpDir)
|
||||
|
||||
Reference in New Issue
Block a user