improve format

This commit is contained in:
Donny Xia
2020-11-06 15:17:56 -08:00
parent 2130ba72cc
commit 7966386615
2 changed files with 16 additions and 16 deletions

View File

@@ -31,7 +31,7 @@ func (s StringList) Has(val []string) bool {
return false return false
} }
func isStringSliceEqual (s []string, t []string) bool { func isStringSliceEqual(s []string, t []string) bool {
if len(s) != len(t) { if len(s) != len(t) {
return false return false
} }

View File

@@ -1288,7 +1288,7 @@ spec:
// //
// Test Case // Test Case
// //
{ {
description: `Add a containerPort with protocol to an existing list`, description: `Add a containerPort with protocol to an existing list`,
origin: ` origin: `
apiVersion: apps/v1 apiVersion: apps/v1
@@ -1345,15 +1345,15 @@ spec:
protocol: UDP protocol: UDP
`}, `},
// //
// Test Case // Test Case
// //
{ {
description: `Add a containerPort with protocol to a non-existing list, existing in dest`, description: `Add a containerPort with protocol to a non-existing list, existing in dest`,
origin: ` origin: `
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment`, kind: Deployment`,
update: ` update: `
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
spec: spec:
@@ -1366,7 +1366,7 @@ spec:
- containerPort: 8080 - containerPort: 8080
protocol: UDP protocol: UDP
`, `,
local: ` local: `
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
spec: spec:
@@ -1379,7 +1379,7 @@ spec:
- containerPort: 8080 - containerPort: 8080
protocol: TCP protocol: TCP
`, // output should have both `, // output should have both
expected: ` expected: `
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
spec: spec: