Skip to content

Commit

Permalink
Disable revive, not worth it
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffail committed Mar 18, 2023
1 parent 3370139 commit 0dd54f6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ linters:
- gofmt
- goimports
- gocritic
- revive
# - revive
- unconvert
- durationcheck
- depguard
Expand Down
31 changes: 13 additions & 18 deletions internal/impl/sql/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -545,19 +545,8 @@ func testSuite(t *testing.T, driver, dsn string, createTableFn func(string) erro
}
}

func TestIntegration(t *testing.T) {
func TestIntegrationClickhouse(t *testing.T) {
integration.CheckSkip(t)

t.Run("clickhouse", clickhouseIntegration)
t.Run("clickhouse_old", clickhouseOldIntegration)
t.Run("postgres", postgresIntegration)
t.Run("mysql", mySQLIntegration)
t.Run("mssql", msSQLIntegration)
t.Run("sqlite", sqliteIntegration)
t.Run("oracle", oracleIntegration)
}

func clickhouseIntegration(t *testing.T) {
t.Parallel()

pool, err := dockertest.NewPool("")
Expand Down Expand Up @@ -611,7 +600,8 @@ func clickhouseIntegration(t *testing.T) {
testSuite(t, "clickhouse", dsn, createTable)
}

func clickhouseOldIntegration(t *testing.T) {
func TestIntegrationOldClickhouse(t *testing.T) {
integration.CheckSkip(t)
t.Parallel()

pool, err := dockertest.NewPool("")
Expand Down Expand Up @@ -665,7 +655,8 @@ func clickhouseOldIntegration(t *testing.T) {
testSuite(t, "clickhouse", dsn, createTable)
}

func postgresIntegration(t *testing.T) {
func TestIntegrationPostgres(t *testing.T) {
integration.CheckSkip(t)
t.Parallel()

pool, err := dockertest.NewPool("")
Expand Down Expand Up @@ -725,7 +716,8 @@ func postgresIntegration(t *testing.T) {
testSuite(t, "postgres", dsn, createTable)
}

func mySQLIntegration(t *testing.T) {
func TestIntegrationMySQL(t *testing.T) {
integration.CheckSkip(t)
t.Parallel()

pool, err := dockertest.NewPool("")
Expand Down Expand Up @@ -788,7 +780,8 @@ func mySQLIntegration(t *testing.T) {
testSuite(t, "mysql", dsn, createTable)
}

func msSQLIntegration(t *testing.T) {
func TestIntegrationMSSQL(t *testing.T) {
integration.CheckSkip(t)
t.Parallel()

pool, err := dockertest.NewPool("")
Expand Down Expand Up @@ -848,7 +841,8 @@ func msSQLIntegration(t *testing.T) {
testSuite(t, "mssql", dsn, createTable)
}

func sqliteIntegration(t *testing.T) {
func TestIntegrationSQLite(t *testing.T) {
integration.CheckSkip(t)
t.Parallel()

var db *sql.DB
Expand Down Expand Up @@ -890,7 +884,8 @@ func sqliteIntegration(t *testing.T) {
testSuite(t, "sqlite", dsn, createTable)
}

func oracleIntegration(t *testing.T) {
func TestIntegrationOracle(t *testing.T) {
integration.CheckSkip(t)
t.Parallel()

pool, err := dockertest.NewPool("")
Expand Down

0 comments on commit 0dd54f6

Please sign in to comment.