Run gofmt -w -s on codebase (#2773)
This formats and simplifies all code by running gofmt -w -s on all Go files. Signed-off-by: Miek Gieben <miek@miek.nl>
This commit is contained in:
parent
e3f9a80b1d
commit
58c703f5ef
8 changed files with 71 additions and 71 deletions
|
@ -5,13 +5,13 @@ import (
|
|||
)
|
||||
|
||||
func TestFilteredNamespaceExists(t *testing.T) {
|
||||
tests := []struct{
|
||||
tests := []struct {
|
||||
expected bool
|
||||
kubernetesNamespaces map[string]struct{}
|
||||
testNamespace string
|
||||
}{
|
||||
{true, map[string]struct{}{}, "foobar" },
|
||||
{false, map[string]struct{}{}, "nsnoexist" },
|
||||
{true, map[string]struct{}{}, "foobar"},
|
||||
{false, map[string]struct{}{}, "nsnoexist"},
|
||||
}
|
||||
|
||||
k := Kubernetes{}
|
||||
|
@ -26,15 +26,15 @@ func TestFilteredNamespaceExists(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestNamespaceExposed(t *testing.T) {
|
||||
tests := []struct{
|
||||
tests := []struct {
|
||||
expected bool
|
||||
kubernetesNamespaces map[string]struct{}
|
||||
testNamespace string
|
||||
}{
|
||||
{true, map[string]struct{}{ "foobar": {} }, "foobar" },
|
||||
{false, map[string]struct{}{ "foobar": {} }, "nsnoexist" },
|
||||
{true, map[string]struct{}{}, "foobar" },
|
||||
{true, map[string]struct{}{}, "nsnoexist" },
|
||||
{true, map[string]struct{}{"foobar": {}}, "foobar"},
|
||||
{false, map[string]struct{}{"foobar": {}}, "nsnoexist"},
|
||||
{true, map[string]struct{}{}, "foobar"},
|
||||
{true, map[string]struct{}{}, "nsnoexist"},
|
||||
}
|
||||
|
||||
k := Kubernetes{}
|
||||
|
@ -49,15 +49,15 @@ func TestNamespaceExposed(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestNamespaceValid(t *testing.T) {
|
||||
tests := []struct{
|
||||
tests := []struct {
|
||||
expected bool
|
||||
kubernetesNamespaces map[string]struct{}
|
||||
testNamespace string
|
||||
}{
|
||||
{true, map[string]struct{}{ "foobar": {} }, "foobar" },
|
||||
{false, map[string]struct{}{ "foobar": {} }, "nsnoexist" },
|
||||
{true, map[string]struct{}{}, "foobar" },
|
||||
{false, map[string]struct{}{}, "nsnoexist" },
|
||||
{true, map[string]struct{}{"foobar": {}}, "foobar"},
|
||||
{false, map[string]struct{}{"foobar": {}}, "nsnoexist"},
|
||||
{true, map[string]struct{}{}, "foobar"},
|
||||
{false, map[string]struct{}{}, "nsnoexist"},
|
||||
}
|
||||
|
||||
k := Kubernetes{}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue