fixtures

package
v1.5.2-rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2021 License: MIT Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL