Skip to content

Commit 54bdc1e

Browse files
committed
fix doc
1 parent bce3eb4 commit 54bdc1e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

models/db/unit_tests.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,19 @@
55
package db
66

77
import (
8-
"code.gitea.io/gitea/modules/unittestapi"
98
"context"
109
"math"
1110

11+
"code.gitea.io/gitea/modules/unittestapi"
12+
1213
"xorm.io/xorm"
1314
)
1415

16+
17+
// Code in this file is mainly used by models.CheckConsistencyFor, which is not in the unit test for various reasons.
18+
// In the future if we can decouple CheckConsistencyFor into separate unit test code, then this file can be moved into unittest package too.
19+
20+
1521
// NonexistentID an ID that will never exist
1622
const NonexistentID = int64(math.MaxInt64)
1723

0 commit comments

Comments
 (0)