mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-11 13:18:53 +00:00
all: gofmt -w -s (simplify) tests
And it updates the build tag style on a couple files. Change-Id: I84478d822c8de3f84b56fa1176c99d2ea5083237 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
@@ -15,13 +15,13 @@ func TestParsePort(t *testing.T) {
|
||||
expect int
|
||||
}
|
||||
tests := []InOut{
|
||||
InOut{"1.2.3.4:5678", 5678},
|
||||
InOut{"0.0.0.0.999", 999},
|
||||
InOut{"1.2.3.4:*", 0},
|
||||
InOut{"5.5.5.5:0", 0},
|
||||
InOut{"[1::2]:5", 5},
|
||||
InOut{"[1::2].5", 5},
|
||||
InOut{"gibberish", -1},
|
||||
{"1.2.3.4:5678", 5678},
|
||||
{"0.0.0.0.999", 999},
|
||||
{"1.2.3.4:*", 0},
|
||||
{"5.5.5.5:0", 0},
|
||||
{"[1::2]:5", 5},
|
||||
{"[1::2].5", 5},
|
||||
{"gibberish", -1},
|
||||
}
|
||||
|
||||
for _, io := range tests {
|
||||
|
Reference in New Issue
Block a user