- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for TestParsePort (0.21 sec)
-
cmd/kubeadm/app/util/endpoint_test.go
return } if actualPort != rt.expectedPort { t.Errorf("%s returned invalid port %s, expected %s", rt.name, actualPort, rt.expectedPort) } }) } } func TestParsePort(t *testing.T) { var tests = []struct { name string port string expectedPort int expectedError bool }{ { name: "valid port", port: "1234",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Feb 23 03:19:26 UTC 2019 - 10K bytes - Viewed (0) -
pilot/pkg/model/context_test.go
if err != nil { return nil, err } pbs := &structpb.Struct{} if err := protomarshal.Unmarshal(b, pbs); err != nil { return nil, err } return pbs, nil } func TestParsePort(t *testing.T) { if port := model.ParsePort("localhost:3000"); port != 3000 { t.Errorf("ParsePort(localhost:3000) => Got %d, want 3000", port) } if port := model.ParsePort("localhost"); port != 0 {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Apr 05 23:51:52 UTC 2024 - 11.2K bytes - Viewed (0)