Documentation ¶
Index ¶
Constants ¶
View Source
const ( GreetingFileContents = "hello, world\n" GreetingFileName = "greeting" )
Variables ¶
View Source
var Greeting = Torrent{ Files: []File{{ Data: GreetingFileContents, }}, Name: GreetingFileName, }
Functions ¶
func CreateDummyTorrentData ¶
func ExportStatusWriter ¶
func ExportStatusWriter(sw StatusWriter, path string)
Use StatusServer instead to allow -count > 1 when testing.
func GreetingMetaInfo ¶
func GreetingTestTorrent ¶
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 ¶
type StatusServer ¶
type StatusServer struct {
// contains filtered or unexported fields
}
func NewStatusServer ¶
func NewStatusServer(t *testing.T) (ret *StatusServer)
func (StatusServer) Close ¶
func (me StatusServer) Close()
func (*StatusServer) HandleStatusWriter ¶
func (me *StatusServer) HandleStatusWriter(sw StatusWriter, path string)
type StatusWriter ¶
Click to show internal directories.
Click to hide internal directories.