gitea/models/activities
wxiaoguang 0ed160ffea
Refactor tests ()
1. fix incorrect tests, for example: BeanExists doesn't do assert and
shouldn't be used
2. remove unnecessary test functions
3. introduce DumpQueryResult to help to see the database rows during
test (at least I need it)

```
====== DumpQueryResult: SELECT * FROM action_runner_token ======
- # row[0]
  id: 1
  token: xeiWBL5kuTYxGPynHCqQdoeYmJAeG3IzGXCYTrDX
  owner_id: 0
...
```
..
action.go Refactor "string truncate" ()
action_list.go Move GetFeeds to service layer ()
action_test.go Move GetFeeds to service layer ()
main_test.go make writing main test easier ()
notification.go Perf: add extra index to notification table ()
notification_list.go Refactor more filterslice ()
notification_test.go Use db.Find instead of writing methods for every object ()
repo_activity.go Fix bug on activities ()
statistic.go Rename project board -> column to make the UI less confusing ()
user_heatmap.go Move GetFeeds to service layer ()
user_heatmap_test.go Refactor tests ()