Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PublinkFixture ¶
type PublinkFixture struct { Metadata modules.PubfileMetadata `json:"metadata"` Content []byte `json:"content"` }
PublinkFixture holds the download representation of a Publink
func LoadPublinkFixture ¶
func LoadPublinkFixture(link modules.Publink) (PublinkFixture, error)
LoadPublinkFixture returns the PublinkFixture representation of a Publink.
NOTES: Each test is run with its own directory as a working directory. This means that we can load a relative path and each test will load its own data or, at least, the data of its own directory.
Click to show internal directories.
Click to hide internal directories.