Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add Hash field to repo type #37

Merged
merged 2 commits into from
Jan 29, 2020
Merged

feat: add Hash field to repo type #37

merged 2 commits into from
Jan 29, 2020

Conversation

jbrockopp
Copy link
Contributor

No description provided.

@jbrockopp jbrockopp added the feature Indicates a new feature label Jan 28, 2020
@jbrockopp jbrockopp requested a review from a team as a code owner January 28, 2020 19:47
@jbrockopp jbrockopp self-assigned this Jan 28, 2020
@@ -78,6 +81,9 @@ func TestLibrary_Repo_Getters(t *testing.T) {
if gotUserID != wantUserID {
t.Errorf("GetUserID is %v, want %v", gotUserID, wantUserID)
}
if gotHash != wantHash {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if statements should only be cuddled with assignments (from wsl)

@@ -154,6 +161,9 @@ func TestLibrary_Repo_Getters_Empty(t *testing.T) {
if gotUserID != 0 {
t.Errorf("GetUserID is %v, want 0", gotUserID)
}
if gotHash != "" {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if statements should only be cuddled with assignments (from wsl)

@@ -252,6 +264,9 @@ func TestLibrary_Repo_Setters(t *testing.T) {
if r.GetUserID() != wantUserID {
t.Errorf("GetUserID is %v, want %v", r.GetUserID(), wantUserID)
}
if r.GetHash() != wantHash {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if statements should only be cuddled with assignments (from wsl)

@codecov
Copy link

codecov bot commented Jan 28, 2020

Codecov Report

Merging #37 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master    #37   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          40     40           
  Lines        2213   2227   +14     
=====================================
+ Hits         2213   2227   +14
Impacted Files Coverage Δ
database/repo.go 100% <100%> (ø) ⬆️
library/repo.go 100% <100%> (ø) ⬆️

Copy link

@kneal kneal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🐬

Copy link
Contributor

@plyr4 plyr4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@plyr4 plyr4 merged commit 33636d2 into master Jan 29, 2020
@plyr4 plyr4 deleted the feature/repo/hash branch January 29, 2020 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Indicates a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants