Commit Graph

7 Commits (acad08d6f0aaf8898f34455b8efa04f04abc8b18)

Author SHA1 Message Date
Claude dead70fee3
Add tests for 25 additional core packages
Massive test coverage expansion across utilities, types, and core components:

Types packages (7):
- types/empty, types/ptr, types/structs, types/preftype
- types/flagtype, types/nettype

Core infrastructure (6):
- paths: File path handling tests
- tsconst: Constants validation
- tsd: System daemon tests
- omit: Omit error tests
- proxymap: Proxy mapping tests
- sessionrecording: Session recording tests

Utilities (12):
- util/must: Must helper tests
- util/lineread: Line reader tests
- util/groupmember: Group membership tests
- util/systemd: Systemd integration tests
- util/cibuild: CI detection tests
- util/osshare: OS sharing tests
- util/quarantine: File quarantine tests
- util/racebuild: Race detection tests
- util/precompress: Precompression tests
- util/progresstracking: Progress tracking tests

Network & Engine:
- net/wsconn: WebSocket connection tests
- wgengine/wgcfg/nmcfg: WireGuard config tests
- wf: Windows Firewall tests

All tests include basic validation and edge case coverage.
3 weeks ago
Brad Fitzpatrick 10f1c90f4d wgengine/magicsock, types/nettype, etc: finish ReadFromUDPAddrPort netip migration
So we're staying within the netip.Addr/AddrPort consistently and
avoiding allocs/conversions to the legacy net addr types.

Updates #5162

Change-Id: I59feba60d3de39f773e68292d759766bac98c917
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
3 years ago
Brad Fitzpatrick 29f7df9d8f wgengine/magicsock, etc: remove mostly unused WriteTo methods
Updates #2331
Updates #5162

Change-Id: I8291884425481eeaedde38a54adfd8ed7292a497
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
3 years ago
Brad Fitzpatrick 9ff51ca17f wgengine/netstack: add support for custom UDP flow handlers
To be used by tsnet and sniproxy later.

Updates #5871
Updates #1748

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
3 years ago
Will Norris 71029cea2d all: update copyright and license headers
This updates all source files to use a new standard header for copyright
and license declaration.  Notably, copyright no longer includes a date,
and we now use the standard SPDX-License-Identifier header.

This commit was done almost entirely mechanically with perl, and then
some minimal manual fixes.

Updates #6865

Signed-off-by: Will Norris <will@tailscale.com>
3 years ago
Brad Fitzpatrick 7eaf5e509f net/netaddr: start migrating to net/netip via new netaddr adapter package
Updates #5162

Change-Id: Id7bdec303b25471f69d542f8ce43805328d56c12
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
3 years ago
Brad Fitzpatrick 6c74065053 wgengine/magicsock, tstest/natlab: start hooking up natlab to magicsock
Also adds ephemeral port support to natlab.

Work in progress.

Pairing with @danderson.
5 years ago