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