helper: export internal stub functions for cross-package testing

Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
This commit is contained in:
2024-09-29 15:22:35 +09:00
parent 3bf456da65
commit 7e7327ebf8
4 changed files with 93 additions and 85 deletions

View File

@@ -35,7 +35,7 @@ func prepareArgs() {
}
func TestHelper_StartNotify_Close_Wait(t *testing.T) {
helper.ReplaceExecCommand(t)
helper.InternalReplaceExecCommand(t)
argsOnce.Do(prepareArgs)
t.Run("start helper with status channel", func(t *testing.T) {
@@ -106,7 +106,7 @@ func TestHelper_StartNotify_Close_Wait(t *testing.T) {
})
}
func TestHelper_Start_Close_Wait(t *testing.T) {
helper.ReplaceExecCommand(t)
helper.InternalReplaceExecCommand(t)
argsOnce.Do(prepareArgs)
var wt io.WriterTo