Run a more strict formatter over the code (#11312)

* Update tooling

* Run gofumpt

* go mod vendor
This commit is contained in:
Brian Kassouf
2021-04-08 09:43:39 -07:00
committed by GitHub
parent 60f3ba99a4
commit a24653cc5c
658 changed files with 10961 additions and 3671 deletions

View File

@@ -145,7 +145,6 @@ func TestOpenAPI_Regex(t *testing.T) {
t.Fatalf("Clean Regex error (%s). Expected %s, got %s", test.input, test.output, result)
}
}
})
}
@@ -599,7 +598,7 @@ func testPath(t *testing.T, path *Path, sp *logical.Paths, expectedJSON string)
}
if diff := deep.Equal(actual, expected); diff != nil {
//fmt.Println(string(docJSON)) // uncomment to debug generated JSON (very helpful when fixing tests)
// fmt.Println(string(docJSON)) // uncomment to debug generated JSON (very helpful when fixing tests)
t.Fatal(diff)
}
}
@@ -630,7 +629,6 @@ func expected(name string) string {
func mustJSONMarshal(t *testing.T, data interface{}) []byte {
j, err := json.MarshalIndent(data, "", " ")
if err != nil {
t.Fatal(err)
}