2017-02-06 23:18:36 +08:00
|
|
|
// Copyright 2017 The Gitea Authors. All rights reserved.
|
2022-11-28 02:20:29 +08:00
|
|
|
// SPDX-License-Identifier: MIT
|
2017-02-06 23:18:36 +08:00
|
|
|
|
|
|
|
package models
|
2016-04-23 06:28:08 +08:00
|
|
|
|
|
|
|
import (
|
2016-07-09 13:22:28 +08:00
|
|
|
"testing"
|
2016-04-23 06:28:08 +08:00
|
|
|
|
2021-09-19 19:49:59 +08:00
|
|
|
"code.gitea.io/gitea/models/db"
|
2021-11-12 22:36:47 +08:00
|
|
|
"code.gitea.io/gitea/models/unittest"
|
2017-02-06 23:18:36 +08:00
|
|
|
|
2017-06-06 21:53:16 +08:00
|
|
|
"github.com/stretchr/testify/assert"
|
2016-04-23 06:28:08 +08:00
|
|
|
)
|
|
|
|
|
2022-01-18 02:31:58 +08:00
|
|
|
func TestCheckRepoStats(t *testing.T) {
|
|
|
|
assert.NoError(t, unittest.PrepareTestDatabase())
|
|
|
|
assert.NoError(t, CheckRepoStats(db.DefaultContext))
|
|
|
|
}
|
|
|
|
|
2020-07-08 03:16:34 +08:00
|
|
|
func TestDoctorUserStarNum(t *testing.T) {
|
2021-11-12 22:36:47 +08:00
|
|
|
assert.NoError(t, unittest.PrepareTestDatabase())
|
2020-07-08 03:16:34 +08:00
|
|
|
|
|
|
|
assert.NoError(t, DoctorUserStarNum())
|
|
|
|
}
|