| 1670 | } |
| 1671 | |
| 1672 | type fakeProcess struct { |
| 1673 | mu sync.Mutex |
| 1674 | pid int |
| 1675 | done chan struct{} |
| 1676 | waitErr error |
| 1677 | closed bool |
| 1678 | initReqs []subprocess.InitializeRequest |
| 1679 | initResp subprocess.InitializeResponse |
| 1680 | initErr error |
| 1681 | initHook func() |
| 1682 | health subprocess.HealthState |
| 1683 | handlers map[string]subprocess.HandlerFunc |
| 1684 | callFn func(context.Context, string, any, any) error |
| 1685 | shutdownFn func(context.Context) error |
| 1686 | shutdownCnt int |
| 1687 | } |
| 1688 | |
| 1689 | func newFakeProcess(pid int) *fakeProcess { |
| 1690 | return &fakeProcess{ |
nothing calls this directly
no outgoing calls
no test coverage detected