MCPcopy Create free account
hub / github.com/gogs/gogs / parseCountResult

Function parseCountResult

internal/database/issue.go:1217–1225  ·  view source on GitHub ↗
(results []map[string][]byte)

Source from the content-addressed store, hash-verified

1215)
1216
1217func parseCountResult(results []map[string][]byte) int64 {
1218 if len(results) == 0 {
1219 return 0
1220 }
1221 for _, result := range results[0] {
1222 return com.StrTo(string(result)).MustInt64()
1223 }
1224 return 0
1225}
1226
1227type IssueStatsOptions struct {
1228 RepoID int64

Callers 1

CheckRepoStatsFunction · 0.85

Calls 1

stringFunction · 0.85

Tested by

no test coverage detected