6d0a4e0b创建于 2022年12月27日历史提交
package main

import (
	"testing"
)

func TestExecute(t *testing.T) {
	setupSignalHandler = func() (stopCh <-chan struct{}) {
		return make(chan struct{})
	}

	bootInit = func() {
		t.Logf("Run boot Init")
	}

	bootRun = func(stopCh <-chan struct{}) {
		t.Logf("Run boot Run with stopCh")
	}

	main()
}