fixtures

package
v1.5.6 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 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 SkylinkFixture

type SkylinkFixture struct {
	Metadata modules.SkyfileMetadata `json:"metadata"`
	Content  []byte                  `json:"content"`
}

SkylinkFixture holds the download representation of a Skylink

func LoadSkylinkFixture

func LoadSkylinkFixture(link modules.Skylink) (SkylinkFixture, error)

LoadSkylinkFixture returns the SkylinkFixture representation of a Skylink.

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