You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default threshold is set to 0.
Assuming a refactoring has already eliminated the magic number, re-testing should not detect this smell.
However, because magicCount = 0 >= 0 (default threshold), the following code will still detect a magic number:
overridevalmagicNumberTest: Intget() = 0
testMethod.setSmell(false); //default value is false (i.e. no smell)super.visit(n, arg);
testMethod.setSmell(magicCount >= thresholds.getMagicNumberTest());
The text was updated successfully, but these errors were encountered:
The default threshold is set to 0.
Assuming a refactoring has already eliminated the magic number, re-testing should not detect this smell.
However, because magicCount = 0 >= 0 (default threshold), the following code will still detect a magic number:
The text was updated successfully, but these errors were encountered: