Skip to content

Commit

Permalink
remove dummy func
Browse files Browse the repository at this point in the history
  • Loading branch information
taylanisikdemir committed Mar 21, 2024
1 parent 517de20 commit b73923e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
20 changes: 0 additions & 20 deletions service/history/task/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -459,23 +459,3 @@ func getDomainTagByID(
}
return metrics.DomainTag(domainName), nil
}

// TODO: remove before merge
func someFuncToTryNewLineCoverage(a, b int) {
_ = a + b
_ = a - b
_ = a * b
_ = a / b
_ = a % b
if a == b {
return
}
_ = a & b
_ = a | b
_ = a ^ b
_ = a << b
_ = a >> b
_ = a >> b
_ = a >> b
_ = a >> b
}
4 changes: 0 additions & 4 deletions service/history/task/task_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,3 @@ func (s *taskSuite) newTestTask(
taskBase.scope = s.mockShard.GetMetricsClient().Scope(0)
return taskBase
}

func TestCoverage(t *testing.T) {
someFuncToTryNewLineCoverage(5, 5)
}

0 comments on commit b73923e

Please sign in to comment.