testutil

package
v0.0.0-...-2a0b78e Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2016 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const GreetingFileContents = "hello, world\n"

Variables

This section is empty.

Functions

func CreateDummyTorrentData

func CreateDummyTorrentData(dirName string) string

func CreateMetaInfo

func CreateMetaInfo(name string, w io.Writer)

Writes to w, a metainfo containing the file at name.

func GreetingTestTorrent

func GreetingTestTorrent() (tempDir string, metaInfo *metainfo.MetaInfo)

Gives a temporary directory containing the completed "greeting" torrent, and a corresponding metainfo describing it. The temporary directory can be cleaned away with os.RemoveAll.

Types

This section is empty.

Jump to

Keyboard shortcuts

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