forked from lei.chen/myxce
1. Add //go:build !cgo to control_host_test.go so the stub-testing tests only run in non-CGO builds, matching the stub.go build constraint. Clean up dead nil check in SignatureCompiles test. 2. Replace two independent if-statements for actionType mapping in ControlHost with a map lookup + explicit guard, consistent with ControlQueue's ActionMap pattern. Prevents silent zero-value actionType if SupportedHostActions expands later. |
||
|---|---|---|
| .. | ||
| auth | ||
| clib.go | ||
| config.go | ||
| control_host_test.go | ||
| convert.go | ||
| convert_pure.go | ||
| convert_test.go | ||
| handler.go | ||
| handler_test.go | ||
| notification.go | ||
| stub.go | ||