Skip to content

Commit

Permalink
Merge pull request #345 from furusax0621/fix-typo
Browse files Browse the repository at this point in the history
Fix typo
  • Loading branch information
k1LoW authored Feb 26, 2024
2 parents 85baac1 + ac933ff commit 8635b17
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions cmd/comment.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,13 @@ func createReportContent(ctx context.Context, c *config.Config, r, rPrev *report
if rPrev != nil {
d := r.Compare(rPrev)
table = d.Table()
fileTable = d.FileCoveagesTable(files)
fileTable = d.FileCoveragesTable(files)
for _, s := range d.CustomMetrics {
customTables = append(customTables, s.Table(), s.MetadataTable())
}
} else {
table = r.Table()
fileTable = r.FileCoveagesTable(files)
fileTable = r.FileCoveragesTable(files)
for _, s := range r.CustomMetrics {
customTables = append(customTables, s.Table(), s.MetadataTable())
}
Expand Down
4 changes: 2 additions & 2 deletions report/diff_report.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"strings"
"time"

"github.com/k1LoW/octocov/gh"
"github.com/k1LoW/octocov/coverage"
"github.com/k1LoW/octocov/gh"
"github.com/k1LoW/octocov/ratio"
"github.com/olekukonko/tablewriter"
)
Expand Down Expand Up @@ -250,7 +250,7 @@ func (d *DiffReport) renderTable(table *tablewriter.Table, g, r, b tablewriter.C
}
}

func (d *DiffReport) FileCoveagesTable(files []*gh.PullRequestFile) string {
func (d *DiffReport) FileCoveragesTable(files []*gh.PullRequestFile) string {
if d.Coverage == nil {
return ""
}
Expand Down
2 changes: 1 addition & 1 deletion report/report.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ func (r *Report) Out(w io.Writer) error {
return nil
}

func (r *Report) FileCoveagesTable(files []*gh.PullRequestFile) string {
func (r *Report) FileCoveragesTable(files []*gh.PullRequestFile) string {
if r.Coverage == nil {
return ""
}
Expand Down
4 changes: 2 additions & 2 deletions report/report_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ func TestOut(t *testing.T) {
}
}

func TestFileCoveagesTable(t *testing.T) {
func TestFileCoveragesTable(t *testing.T) {
tests := []struct {
files []*gh.PullRequestFile
want string
Expand All @@ -395,7 +395,7 @@ func TestFileCoveagesTable(t *testing.T) {
t.Fatal(err)
}
for _, tt := range tests {
if got := r.FileCoveagesTable(tt.files); got != tt.want {
if got := r.FileCoveragesTable(tt.files); got != tt.want {
t.Errorf("got\n%v\nwant\n%v", got, tt.want)
}
}
Expand Down

0 comments on commit 8635b17

Please sign in to comment.