summaryrefslogtreecommitdiffstats
path: root/models/models.go
diff options
context:
space:
mode:
authorEthan Koenig <etk39@cornell.edu>2017-02-07 06:47:55 -0500
committerLunny Xiao <xiaolunwen@gmail.com>2017-02-07 19:47:55 +0800
commitceae143e78dabe9c5ef6bafff739aa487f79ca70 (patch)
tree81dc5c431ffcd1e2824a7b1577fa463fb1434d74 /models/models.go
parent94130da63a31da59207dd7c4f12aa46fde17ab5b (diff)
downloadgitea-ceae143e78dabe9c5ef6bafff739aa487f79ca70.tar.gz
gitea-ceae143e78dabe9c5ef6bafff739aa487f79ca70.zip
Consistency checks for unit tests (#853)
Diffstat (limited to 'models/models.go')
-rw-r--r--models/models.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/models/models.go b/models/models.go
index 1f49640dd4..6590834037 100644
--- a/models/models.go
+++ b/models/models.go
@@ -30,6 +30,7 @@ import (
// Engine represents a xorm engine or session.
type Engine interface {
+ Count(interface{}) (int64, error)
Decr(column string, arg ...interface{}) *xorm.Session
Delete(interface{}) (int64, error)
Exec(string, ...interface{}) (sql.Result, error)