#Testing

Run the standard suite:

go test ./...

Run with coverage:

go test -cover ./...

Run the race detector:

go test -race ./...

Run static checks:

go vet ./...

The test suite covers:

  • CLI actions and self-test
  • config parsing, saving, dotenv, environment precedence
  • debug logging
  • Kerberos command orchestration and concurrent renewal checks
  • PAC loading and PAC helper functions
  • HTTP forwarding and HTTPS CONNECT
  • SOCKS and PAC upstream modes
  • upstream proxy auth and local client auth
  • large data transfers and concurrent request behavior
  • system proxy parsing and Windows startup command construction

Before considering the rewrite complete, run:

go test ./...
go test -race ./...
go vet ./...
go build ./...