Decrease cyclomatic complexity for test
Mostly by using the "extract method" pattern. Here was the report (from gocyclo), before: 17 tunnel TestTunnelManagerCleanup pkg/minikube/tunnel/tunnel_manager_test.go:174:1 44 tunnel TestTunnel pkg/minikube/tunnel/tunnel_test.go:35:1 34 kubeconfig configEquals pkg/util/kubeconfig/config_test.go:420:1 25 integration testMounting test/integration/mount_test.go:36:1 18 integration testTunnel test/integration/tunnel_test.go:37:1
Showing
想要评论请 注册 或 登录