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