Skip to content

Commit

Permalink
fix: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Dec 29, 2019
1 parent e291ef0 commit 58b29c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/domain/tbs/tbs_app.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func (a TbsApp) AnalysisPath(deps []models.JClassNode, identifiersMap map[string
var methodCallMap = make(map[string][]models.JMethodCall)
for _, methodCall := range method.MethodCalls {
checkRedundantPrintTest(clz.Path, methodCall, &results)
checkUnknownTest(clz.Path, methodCall, &results)
checkSleepyTest(clz.Path, methodCall, &results)
checkDuplicateAssertTest(methodCall, clz, &results, methodCallMap)
}
}
Expand All @@ -59,7 +59,7 @@ func methodCallName(methodCall models.JMethodCall) string {
return methodCall.Package + "." + methodCall.Class + "." + methodCall.MethodName
}

func checkUnknownTest(path string, method models.JMethodCall, results *[]TestBadSmell) {
func checkSleepyTest(path string, method models.JMethodCall, results *[]TestBadSmell) {
if method.MethodName == "sleep" && method.Class == "Thread" {
tbs := *&TestBadSmell{
FileName: path,
Expand Down

0 comments on commit 58b29c2

Please sign in to comment.