]> Cypherpunks repositories - gostls13.git/commit
net/netip: cover more AddrPort.String cases in tests
authorTobias Klauser <tklauser@distanz.ch>
Tue, 17 Sep 2024 08:42:08 +0000 (10:42 +0200)
committerGopher Robot <gobot@golang.org>
Wed, 18 Sep 2024 19:24:44 +0000 (19:24 +0000)
commite190638f204366bb509b77931aa58543b6300910
tree4f5c1f4fbf30f7c7ca0e2c8cef0ba7292911c8c8
parentdb40d1a4c434e319e70af87ef1024a211a9e5a98
net/netip: cover more AddrPort.String cases in tests

TestInvalidAddrPortString currently only tests for invalid AddrPorts.
Add some valid cases as well to improve test coverage.

Change-Id: Iaa9192e48a61daed6f7ce7d680d602a021570bdc
Reviewed-on: https://go-review.googlesource.com/c/go/+/613795
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
src/net/netip/netip_test.go