nmdias / FeedKit

An RSS, Atom and JSON Feed parser written in Swift
MIT License
1.19k stars 173 forks source link

How mock AtomFeed with urls ? #154

Closed p-vayssier-betclic closed 1 year ago

p-vayssier-betclic commented 1 year ago

Hello 👋, I use your SPM and I want to make a mock in my Unit Test, but I can't set value of attributes in the AtomFeedEntry, the value is always nil. Somebody can explain me how I can do that 😊 ?

How I do :

let urlFeed = AtomFeedEntryLink()
urlFeed.attributes?.href = url
atomEntry.links = [urlFeed]

The value :

(lldb) po urlFeed.attributes
nil