Versions in this module Expand all Collapse all v0 v0.19.4 May 24, 2023 Changes in this version + const NonexistentID + func AssertCount(t assert.TestingT, bean, expected interface{}) + func AssertCountByCond(t assert.TestingT, tableName string, cond builder.Cond, expected int) + func AssertExistsAndLoadBean(t assert.TestingT, bean T, conditions ...interface{}) T + func AssertExistsAndLoadMap(t assert.TestingT, table string, conditions ...interface{}) map[string]string + func AssertExistsIf(t assert.TestingT, expected bool, bean interface{}, conditions ...interface{}) + func AssertInt64InRange(t assert.TestingT, low, high, value int64) + func AssertNotExistsBean(t assert.TestingT, bean interface{}, conditions ...interface{}) + func AssertSuccessfulInsert(t assert.TestingT, beans ...interface{}) + func BeanExists(t assert.TestingT, bean interface{}, conditions ...interface{}) bool + func CheckConsistencyFor(t assert.TestingT, beansToCheck ...interface{}) + func Cond(query interface{}, args ...interface{}) interface + func Copy(src, dest string) error + func CopyDir(srcPath, destPath string, filters ...func(filePath string) bool) error + func CreateTestEngine(opts FixturesOptions) error + func FixturesDir() string + func GetCount(t assert.TestingT, bean interface{}, conditions ...interface{}) int + func GetCountByCond(t assert.TestingT, tableName string, cond builder.Cond) int64 + func GetXORMEngine(engine ...*xorm.Engine) (x *xorm.Engine) + func InitFixtures(opts FixturesOptions, engine ...*xorm.Engine) (err error) + func InitSettings(extraConfigs ...string) + func LoadBeanIfExists(bean interface{}, conditions ...interface{}) (bool, error) + func LoadFixtures(engine ...*xorm.Engine) error + func MainTest(m *testing.M, testOpts *TestOptions) + func PrepareTestDatabase() error + func PrepareTestEnv(t testing.TB) + type FixturesOptions struct + Dir string + Files []string + type TestOptions struct + FixtureFiles []string + GiteaRootPath string + SetUp func() error + TearDown func() error