(results []map[string][]byte)
| 1215 | ) |
| 1216 | |
| 1217 | func 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 | |
| 1227 | type IssueStatsOptions struct { |
| 1228 | RepoID int64 |
no test coverage detected