all: apply godoc [Name] link conventions across comments
Every Go-identifier reference in // and /* */ comments now uses
godoc's [Name] linking syntax so pkg.go.dev and `go doc` render
them as clickable cross-references. No behaviour change.
Pattern applied across the tree:
In-package [Foo], [Foo.Bar]
Cross-package [pkg.Foo], [pkg.Foo.Bar]
Stdlib [netip.Prefix], [errors.Is], [context.Context]
Tailscale [tailcfg.MapResponse], [tailcfg.Node.CapMap],
[tailcfg.NodeAttrSuggestExitNode]
Skip rules:
- File:line refs left as plain text
- HuJSON wire keys inside backtick raw strings untouched
- ACL/policy syntax tokens (tag:foo, autogroup:self, ...) not Go
symbols, left as plain text
- JSON/OIDC wire keys, gorm tags, RFC IPv6 placeholders, markdown
link tags, decorative dividers — all left as-is
This commit is contained in:
parent
17236fd284
commit
4cca63155d
124 changed files with 1037 additions and 1011 deletions
|
|
@ -20,7 +20,7 @@ import (
|
|||
// consistency bugs.
|
||||
|
||||
// TestStressConnectDisconnect exercises rapid connect/disconnect
|
||||
// patterns that stress the grace period, batcher, and NodeStore.
|
||||
// patterns that stress the grace period, batcher, and [state.NodeStore].
|
||||
func TestStressConnectDisconnect(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
|
|
@ -536,7 +536,7 @@ func TestStressDataIntegrity(t *testing.T) {
|
|||
}
|
||||
})
|
||||
|
||||
// MachineKey should be consistent: the server should track
|
||||
// [netmap.NetworkMap.MachineKey] should be consistent: the server should track
|
||||
// the same machine key the client registered with.
|
||||
t.Run("machine_key_consistent", func(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
|
@ -551,7 +551,7 @@ func TestStressDataIntegrity(t *testing.T) {
|
|||
nm := c1.Netmap()
|
||||
require.NotNil(t, nm)
|
||||
|
||||
// The client's MachineKey in the netmap should be non-zero.
|
||||
// The client's [netmap.NetworkMap.MachineKey] should be non-zero.
|
||||
assert.False(t, nm.MachineKey.IsZero(),
|
||||
"client's MachineKey should be non-zero")
|
||||
|
||||
|
|
@ -564,7 +564,7 @@ func TestStressDataIntegrity(t *testing.T) {
|
|||
"client and server should agree on MachineKey")
|
||||
})
|
||||
|
||||
// NodeKey should be consistent between client and server.
|
||||
// [netmap.NetworkMap.NodeKey] should be consistent between client and server.
|
||||
t.Run("node_key_consistent", func(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue