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

@@ -263,7 +263,6 @@ func (p *PostgreSQL) NewUser(ctx context.Context, req dbplugin.NewUserRequest) (
tx, err := db.BeginTx(ctx, nil)
if err != nil {
return dbplugin.NewUserResponse{}, fmt.Errorf("unable to start transaction: %w", err)
}
defer tx.Rollback()

View File

@@ -92,7 +92,8 @@ func TestPostgreSQL_NewUser(t *testing.T) {
RoleName: "test",
},
Statements: dbplugin.Statements{
Commands: []string{`
Commands: []string{
`
CREATE ROLE "{{name}}" WITH
LOGIN
PASSWORD '{{password}}'
@@ -116,7 +117,8 @@ func TestPostgreSQL_NewUser(t *testing.T) {
RoleName: "test",
},
Statements: dbplugin.Statements{
Commands: []string{`
Commands: []string{
`
CREATE ROLE "{{username}}" WITH
LOGIN
PASSWORD '{{password}}'
@@ -140,7 +142,8 @@ func TestPostgreSQL_NewUser(t *testing.T) {
RoleName: "test",
},
Statements: dbplugin.Statements{
Commands: []string{`
Commands: []string{
`
CREATE ROLE "{{name}}" WITH
LOGIN
PASSWORD '{{password}}'
@@ -165,7 +168,8 @@ func TestPostgreSQL_NewUser(t *testing.T) {
RoleName: "test",
},
Statements: dbplugin.Statements{
Commands: []string{`
Commands: []string{
`
CREATE ROLE "{{username}}" WITH
LOGIN
PASSWORD '{{password}}'
@@ -936,7 +940,8 @@ func TestNewUser_CustomUsername(t *testing.T) {
newUserReq := dbplugin.NewUserRequest{
UsernameConfig: test.newUserData,
Statements: dbplugin.Statements{
Commands: []string{`
Commands: []string{
`
CREATE ROLE "{{name}}" WITH
LOGIN
PASSWORD '{{password}}'