Skip to content

Commit

Permalink
fixed some errors
Browse files Browse the repository at this point in the history
  • Loading branch information
roddy3 committed Apr 9, 2022
1 parent 043ff76 commit 162648c
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions TemplateVideo/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,16 +254,18 @@ func Test_cmdTrimLengthOfVideo(t *testing.T) {
args args
want *exec.Cmd
}{
" get correct video duration",
args{duration: "9400",
tempPath: "",
{
" get correct video duration",
args{duration: "9400",
tempPath: "./temp"},
exec.Command("ffmpeg",
"-i", tempPath+"/merged_video.mp4",
"-c", "copy", "-t", duration,
"-i", "./temp"+"/merged_video.mp4",
"-c", "copy", "-t", "9400ms",
"-y",
tempPath+"/final.mp4"),
"./temp"+"/final.mp4"),
},
}

for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
fmt.Println(cmdTrimLengthOfVideo(tt.args.duration, tt.args.tempPath).String())
Expand Down

0 comments on commit 162648c

Please sign in to comment.