Add internal mock modules

This commit is contained in:
Ingo Oppermann
2024-10-29 14:55:55 +01:00
parent 2ee7fa7e41
commit de9a30a108
13 changed files with 299 additions and 246 deletions

View File

@@ -235,7 +235,7 @@ func TestProcessFailed(t *testing.T) {
}
func TestFFmpegWaitStop(t *testing.T) {
binary, err := testhelper.BuildBinary("sigintwait", "../internal/testhelper")
binary, err := testhelper.BuildBinary("sigintwait")
require.NoError(t, err, "Failed to build helper program")
p, _ := New(Config{
@@ -266,7 +266,7 @@ func TestFFmpegWaitStop(t *testing.T) {
}
func TestFFmpegKill(t *testing.T) {
binary, err := testhelper.BuildBinary("sigint", "../internal/testhelper")
binary, err := testhelper.BuildBinary("sigint")
require.NoError(t, err, "Failed to build helper program")
p, _ := New(Config{
@@ -292,7 +292,7 @@ func TestFFmpegKill(t *testing.T) {
}
func TestProcessForceKill(t *testing.T) {
binary, err := testhelper.BuildBinary("ignoresigint", "../internal/testhelper")
binary, err := testhelper.BuildBinary("ignoresigint")
require.NoError(t, err, "Failed to build helper program")
p, _ := New(Config{
@@ -326,7 +326,7 @@ func TestProcessForceKill(t *testing.T) {
}
func TestProcessDuration(t *testing.T) {
binary, err := testhelper.BuildBinary("sigint", "../internal/testhelper")
binary, err := testhelper.BuildBinary("sigint")
require.NoError(t, err, "Failed to build helper program")
p, err := New(Config{