testhelper

package
v3.2.8 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FakeObjects = []fakestorage.Object{
	{
		BucketName: "my-bucket",
		Name:       "musics/music/music1.txt",
		Content:    []byte("some nice music"),
	},
	{
		BucketName: "my-bucket",
		Name:       "musics/music/music2.txt",
		Content:    []byte("some nicer music"),
	},
	{
		BucketName: "my-bucket",
		Name:       "musics/music/music3.txt",
		Content:    []byte("some even nicer music"),
	},
	{
		BucketName: "my-bucket",
		Name:       "musics/music/music4.mp3",
	},
	{
		BucketName: "my-bucket",
		Name:       "musics/music/music5.wav",
	},
	{
		BucketName: "my-bucket",
		Name:       "musics/music/music/1.txt",
	},
	{
		BucketName: "my-bucket",
		Name:       "musics/music/music/2.txt",
	},
	{
		BucketName: "my-bucket",
		Name:       "musics/music/music/3.txt",
	},
	{
		BucketName: "my-bucket",
		Name:       "musics/music/music/4.mp3",
	},
	{
		BucketName: "my-bucket",
		Name:       "musics/musics/music1.txt",
	},
	{
		BucketName: "my-bucket",
		Name:       "videos/video/video1_720p.mp4",
	},
	{
		BucketName: "my-bucket",
		Name:       "videos/video/video1_480p.mp4",
	},
	{
		BucketName: "my-bucket",
		Name:       "subs/video1.srt",
	},
	{
		BucketName: "your-bucket",
		Name:       "musics/music/music3.txt",
		Content:    []byte("wait what"),
	},
	{
		BucketName: "my-bucket",
		Name:       "videos/video/28043_1_video_1080p.mp4",
	},
	{
		BucketName: "my-bucket",
		Name:       "videos/video/77071_1_caption_wg_240p_001f8ea7-749b-4d43-7bd5-b357e4e24f32.vtt",
	},
	{
		BucketName: "my-bucket",
		Name:       "videos/video/77071_1_caption_wg_240p_001f8ea7-749b-4d43-7bd5-b357e4e24f32.srt",
	},
}

Functions

This section is empty.

Types

type ServerTest

type ServerTest struct {
	TestCase       string
	Method         string
	Addr           string
	ReqHeader      http.Header
	ExpectedStatus int
	ExpectedHeader http.Header
	ExpectedBody   interface{}
}

func (ServerTest) Run

func (st ServerTest) Run(t *testing.T)

Jump to

Keyboard shortcuts

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