blob: 794dcd9a5110df8bdea33cf1a56a9fc19d3f1031 [file]
package utils_test
import (
"testing"
"github.com/DATA-DOG/go-sqlmock"
"github.com/apache/cloudberry-backup/testutils"
"github.com/apache/cloudberry-go-libs/dbconn"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
. "github.com/onsi/gomega/gbytes"
)
var (
connectionPool *dbconn.DBConn
mock sqlmock.Sqlmock
stdout *Buffer
logfile *Buffer
buffer *Buffer
)
func TestUtils(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "utils tests")
}
var _ = BeforeEach(func() {
connectionPool, mock, stdout, _, logfile = testutils.SetupTestEnvironment()
buffer = NewBuffer()
})