aboutsummaryrefslogtreecommitdiffstats
path: root/modules/git/repo_stats_test.go
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2019-07-22 14:03:15 +0200
committerLauris BH <lauris@nix.lv>2019-07-22 15:03:15 +0300
commitfe7689a6b28b644ef309350cf01f563201f44d10 (patch)
tree7d5d5ff94892be59e56eb7d4d59fcadf40e5ff96 /modules/git/repo_stats_test.go
parentb0cd3b8ab9b174f11fd4db8737106be5caf9cc1c (diff)
downloadgitea-fe7689a6b28b644ef309350cf01f563201f44d10.tar.gz
gitea-fe7689a6b28b644ef309350cf01f563201f44d10.zip
Fix empty commits now showing in repo overview (#7521)
* Fix empty commits now showing in repo overview * add test * make fmt
Diffstat (limited to 'modules/git/repo_stats_test.go')
-rw-r--r--modules/git/repo_stats_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/git/repo_stats_test.go b/modules/git/repo_stats_test.go
index 2e8565b9e2..1822af0be6 100644
--- a/modules/git/repo_stats_test.go
+++ b/modules/git/repo_stats_test.go
@@ -23,12 +23,12 @@ func TestRepository_GetCodeActivityStats(t *testing.T) {
assert.NoError(t, err)
assert.NotNil(t, code)
- assert.EqualValues(t, 8, code.CommitCount)
- assert.EqualValues(t, 2, code.AuthorCount)
- assert.EqualValues(t, 8, code.CommitCountInAllBranches)
+ assert.EqualValues(t, 9, code.CommitCount)
+ assert.EqualValues(t, 3, code.AuthorCount)
+ assert.EqualValues(t, 9, code.CommitCountInAllBranches)
assert.EqualValues(t, 10, code.Additions)
assert.EqualValues(t, 1, code.Deletions)
- assert.Len(t, code.Authors, 2)
+ assert.Len(t, code.Authors, 3)
assert.Contains(t, code.Authors, "tris.git@shoddynet.org")
assert.EqualValues(t, 3, code.Authors["tris.git@shoddynet.org"])
assert.EqualValues(t, 5, code.Authors[""])