Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:kilpkonn/gtm-enhanced into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
kilpkonn committed Oct 30, 2020
2 parents 76905dd + b207ce4 commit 5017c19
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
name: Reviewdog
on:
push:
branches:
- develop
- master
pull_request:
branches:
- develop
Expand Down
6 changes: 5 additions & 1 deletion event/manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ func TestRecord(t *testing.T) {
t.Errorf("Record(%s), want error %s, got error %s", sourceFile, project.ErrNotInitialized, err)
}

project.Initialize(false, []string{}, false, "", true)
_, err = project.Initialize(false, []string{}, false, "", true, "")

if err != nil {
t.Errorf("Error initializing project: %s", err)
}

sourceFile = filepath.Join(repo.Workdir(), "doesnotexist.go")
if err = Record(sourceFile); err != project.ErrFileNotFound {
Expand Down
8 changes: 4 additions & 4 deletions project/project_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func TestInitialize(t *testing.T) {
t.Fatalf("Unable to initialize git repo, %s", string(b))
}

s, err := Initialize(false, []string{}, false, "", true)
s, err := Initialize(false, []string{}, false, "", true, "")
if err != nil {
t.Errorf("Initialize(), want error nil got error %s", err)
}
Expand Down Expand Up @@ -93,7 +93,7 @@ func TestInitialize(t *testing.T) {
}

// let's reinitialize with terminal tracking enabled
s, err = Initialize(true, []string{}, false, "", true)
s, err = Initialize(true, []string{}, false, "", true, "")
if err != nil {
t.Errorf("Initialize(true), want error nil got error %s", err)
}
Expand Down Expand Up @@ -169,7 +169,7 @@ func TestUninitialize(t *testing.T) {
t.Fatalf("Unable to initialize git repo, %s", string(b))
}

_, err = Initialize(false, []string{}, false, "", true)
_, err = Initialize(false, []string{}, false, "", true, "")
if err != nil {
t.Fatalf("Want error nil got error %s", err)
}
Expand Down Expand Up @@ -244,7 +244,7 @@ func TestClean(t *testing.T) {
t.Fatalf("Unable to initialize git repo, %s", string(b))
}

_, err = Initialize(false, []string{}, false, "", true)
_, err = Initialize(false, []string{}, false, "", true, "")
if err != nil {
t.Fatalf("Want error nil got error %s", err)
}
Expand Down

0 comments on commit 5017c19

Please sign in to comment.