Commit Graph

3 Commits (772bc3540895736dad874b24809ac73ce0dc81b7)

Author SHA1 Message Date
Claude 99de7d562b
Expand local_test.go: 74 → 218 lines, 3 → 13 tests (nearly 3x!)
Added 10 new test functions for client/local package:
- TestClient_Socket: Socket configuration testing
- TestErrPeerNotFound: Error constant validation
- TestAccessDeniedError: Access denied error formatting
- TestPreconditionsFailedError: Preconditions error handling
- TestInvalidVersionError: Version error messages
- TestClient_UseSocketOnly: Socket-only mode flag
- TestClient_OmitAuth: Auth omission flag
- TestBugReportOpts: Bug report options struct
- TestPingOpts: Ping options validation
- TestDebugPortmapOpts: Port mapping debug options

This is just the beginning - client/local has 80+ methods with
minimal test coverage. This demonstrates the massive potential
for coverage improvement in this critical package.
2 weeks ago
Brad Fitzpatrick c76d075472 nettest, *: add option to run HTTP tests with in-memory network
To avoid ephemeral port / TIME_WAIT exhaustion with high --count
values, and to eventually detect leaked connections in tests. (Later
the memory network will register a Cleanup on the TB to verify that
everything's been shut down)

Updates tailscale/corp#27636

Change-Id: Id06f1ae750d8719c5a75d871654574a8226d2733
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
8 months ago
Percy Wegmann f57fa3cbc3 client,localclient: move localclient.go to client/local package
Updates tailscale/corp#22748

Signed-off-by: Percy Wegmann <percy@tailscale.com>
10 months ago