ea57b1c928265a3fac276cf630797230fda15a95
Remove four private single-impl interfaces (usbEventListener, darwinUSBHostDeviceWatch, darwinServerDataDevice, darwinEndpointStateMachine) and both function-table DI seams (usbipOps, darwinServerOps); production calls the underlying functions directly. Inline ~25 single-call helpers and fuse subordinate routines into their sole caller. Collapse single-field helper structs into their underlying types. Fold server_linux.go/server_darwin.go into host_linux.go/host_darwin.go. Delete change-detector tests per .claude/rules/code-test.md: parse round-trip, mirror, input-validation, and builder-property suites that never exercised real syscalls, network, or cgo. Six test files removed; linux_test.go slimmed to three real-system tests; darwin_integration_test.go retains the six real-cgo tests. Surviving suite: 16 tests that all exercise real OS APIs or spawn the official Linux usbip server. Net: -5100 LoC (~37% of the package).
sing-box
The universal proxy platform.
Documentation
License
Copyright (C) 2022 by nekohasekai <contact-sagernet@sekai.icu>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
In addition, no derivative work may use the name or imply association
with this application without prior consent.
Description
Languages
Go
97.2%
Shell
1.6%
Objective-C
0.8%
Makefile
0.2%
C
0.2%