返回 DeepSeek-Reasonix
main_test.go
根目录 / internal / skill / skillwatch / main_test.go
1 package skillwatch
2
3 import (
4 "os"
5 "testing"
6 )
7
8 // The helper backend re-executes os.Executable(), which is this test binary.
9 // Without this entry the child re-runs the suite instead of serving the pipe,
10 // so every registration times out and the service degrades to scan fallback.
11 func TestMain(m *testing.M) {
12 if MaybeRunHelper() {
13 return
14 }
15 os.Exit(m.Run())
16 }
17
17 lines GO