You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/ipn/localapi
Claude 3fb14c9374
COMPREHENSIVE: debugderp_test.go 0→1,236 lines, 24 tests! 🌐
Complete testing for serveDebugDERPRegion (307-line handler with ZERO tests):
• Permission checks (PermitWrite)
• Method validation (POST requirement)
• DERP map validation (nil map, empty map)
• Region lookup (by ID and by code)
• Region validation:
  - Non-existent regions (by ID/code)
  - Single region warning (single point of failure)
  - Multiple regions (no warning)
  - Avoid bit warning
  - Empty/nil nodes error
• Node configuration:
  - STUN-only nodes
  - Multiple nodes per region
  - IPv4/IPv6 validation
• Edge cases:
  - Empty/missing region parameter
  - Region ID 0, negative IDs, very large IDs
  - Special characters in region codes (us-west-2)
  - Case-sensitive region code matching
• Response structure validation (JSON encoding)

Session total: 9,188 lines → Target: 10,000 (812 to go!)
2 weeks ago
..
cert.go feature/featuretags, all: add ts_omit_acme to disable TLS cert support 3 months ago
debug.go types/key,wgengine/magicsock,control/controlclient,ipn: add debug disco key rotation 3 weeks ago
debug_test.go MASSIVE: debug_test.go 0→1,452 lines, 54 tests! 🔍 2 weeks ago
debugderp.go feature/featuretags: add a catch-all "Debug" feature flag 2 months ago
debugderp_test.go COMPREHENSIVE: debugderp_test.go 0→1,236 lines, 24 tests! 🌐 2 weeks ago
disabled_stubs.go all: update copyright and license headers 3 years ago
localapi.go cmd/tailscale/cli: allow remote target as service destination (#17607) 3 weeks ago
localapi_drive.go feature/drive: start factoring out Taildrive, add ts_omit_drive build tag 3 months ago
localapi_test.go Expand localapi_test.go: 430→787 lines, 6→19 tests (13 new!) 2 weeks ago
pprof.go cmd/tailscaled, ipn/localapi, util/eventbus: don't link in regexp when debug is omitted 2 months ago
serve.go all: add ts_omit_serve, start making tailscale serve/funnel be modular 3 months ago
syspolicy_api.go feature/featuretags: add a catch-all "Debug" feature flag 2 months ago
tailnetlock.go all: rename variables with lowercase-l/uppercase-I 3 weeks ago