2017-02-06 15:18:36 +00:00
|
|
|
// Copyright 2017 The Gitea Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a MIT-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
package models
|
2016-04-22 22:28:08 +00:00
|
|
|
|
|
|
|
import (
|
2016-07-09 05:22:28 +00:00
|
|
|
"testing"
|
2016-04-22 22:28:08 +00:00
|
|
|
|
2021-09-19 11:49:59 +00:00
|
|
|
"code.gitea.io/gitea/models/db"
|
2021-11-12 14:36:47 +00:00
|
|
|
"code.gitea.io/gitea/models/unittest"
|
2017-02-06 15:18:36 +00:00
|
|
|
|
2017-06-06 13:53:16 +00:00
|
|
|
"github.com/stretchr/testify/assert"
|
2016-04-22 22:28:08 +00:00
|
|
|
)
|
|
|
|
|
2022-01-17 18:31:58 +00:00
|
|
|
func TestCheckRepoStats(t *testing.T) {
|
|
|
|
assert.NoError(t, unittest.PrepareTestDatabase())
|
|
|
|
assert.NoError(t, CheckRepoStats(db.DefaultContext))
|
|
|
|
}
|
|
|
|
|
2020-07-07 19:16:34 +00:00
|
|
|
func TestDoctorUserStarNum(t *testing.T) {
|
2021-11-12 14:36:47 +00:00
|
|
|
assert.NoError(t, unittest.PrepareTestDatabase())
|
2020-07-07 19:16:34 +00:00
|
|
|
|
|
|
|
assert.NoError(t, DoctorUserStarNum())
|
|
|
|
}
|