-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add top author stats to acitivity page
- Loading branch information
Showing
13 changed files
with
573 additions
and
960 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,7 @@ func TestRepository_GetCodeActivityStats(t *testing.T) { | |
assert.EqualValues(t, 10, code.Additions) | ||
assert.EqualValues(t, 1, code.Deletions) | ||
assert.Len(t, code.Authors, 3) | ||
assert.Contains(t, code.Authors, "[email protected]") | ||
assert.EqualValues(t, 3, code.Authors["[email protected]"]) | ||
assert.EqualValues(t, 5, code.Authors[""]) | ||
assert.EqualValues(t, "[email protected]", code.Authors[1].Email) | ||
assert.EqualValues(t, 3, code.Authors[1].Commits) | ||
assert.EqualValues(t, 5, code.Authors[2].Commits) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.