package nvdmirror import ( "fmt" ) // Mock cache implementation that fails on Set(). type FailSetCache byte // Get cache value. Always returns not found. func (me FailSetCache) Get(_ string) (map[string]string, bool) { return nil, false } // Set cache value (fails unconditionally). func (me FailSetCache) Set(s string, _ map[string]string) error { return fmt.Errorf("set failed: %s", s) } // Delete value (always succeeds). func (me FailSetCache) Delete(_ string) error { return nil } // Close cache. Always succeeds func (me FailSetCache) Close() error { return nil }