unit_test_helper

package
v0.55.3 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearFolderEx

func ClearFolderEx(folderFullPath string, overtime int) error

ClearFolderEx 清空文件夹,文件夹名称有特殊之处,Hour-min-Nanosecond 的命名方式 如果调用的时候,已存在的文件夹的时间 min < 5 那么则清理

func CopyDir

func CopyDir(src string, dst string) error

CopyDir copies a whole directory recursively

func CopyFile

func CopyFile(src, dst string) error

CopyFile copies a single file from src to dst

func GenerateCSFVideoFile

func GenerateCSFVideoFile(videoPartsRootPath string) (string, error)

GenerateCSFVideoFile 这里为 CSF 的接口专门生成一个视频文件,瑞克和莫蒂 (2013)\Season 5\S05E09 .mkv

func GenerateShooterVideoFile

func GenerateShooterVideoFile(videoPartsRootPath string) (string, error)

GenerateShooterVideoFile 这里为 shooter 的接口专门生成一个视频文件,瑞克和莫蒂 (2013)\Season 5\S05E09 .mkv

func GenerateXunleiVideoFile

func GenerateXunleiVideoFile(videoPartsRootPath string) (string, error)

GenerateXunleiVideoFile 这里为 xunlei 的接口专门生成一个视频文件,手机 (2003) 720p Cooker.rmvb

func GetNowTimeString

func GetNowTimeString() (string, int, int, int)

GetNowTimeString 获取当前的时间,没有秒

func GetTestDataResourceRootPath

func GetTestDataResourceRootPath(resourceFolderNames []string, goBackTimes int, userCopyData bool) string

GetTestDataResourceRootPath 向上返回几层就能够到 ChineseSubFinder-TestData 同级目录,然后进入其中的 resourceFolderName 资源文件夹中

func IsDir

func IsDir(path string) bool

IsDir 存在且是文件夹

Types

This section is empty.

Jump to

Keyboard shortcuts

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