mirror of
https://github.com/coredns/coredns.git
synced 2025-10-29 01:04:15 -04:00
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:
@@ -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{}
|
||||
|
||||
Reference in New Issue
Block a user