You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

repo_test.go 527B

123456789101112131415161718192021222324
  1. // Copyright 2017 The Gitea Authors. All rights reserved.
  2. // SPDX-License-Identifier: MIT
  3. package models
  4. import (
  5. "testing"
  6. "code.gitea.io/gitea/models/db"
  7. "code.gitea.io/gitea/models/unittest"
  8. "github.com/stretchr/testify/assert"
  9. )
  10. func TestCheckRepoStats(t *testing.T) {
  11. assert.NoError(t, unittest.PrepareTestDatabase())
  12. assert.NoError(t, CheckRepoStats(db.DefaultContext))
  13. }
  14. func TestDoctorUserStarNum(t *testing.T) {
  15. assert.NoError(t, unittest.PrepareTestDatabase())
  16. assert.NoError(t, DoctorUserStarNum())
  17. }