diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2020-03-14 10:32:12 +0530 |
---|---|---|
committer | Harsh Shandilya <me@msfjarvis.dev> | 2020-03-14 10:32:12 +0530 |
commit | 093139bc912018114f286edb269f1f8bc137c790 (patch) | |
tree | 57c78d16b97b625c9cfc35385062e7e5e5a37e02 /.idea | |
parent | 6c8a4a6a283ceaa4450e6c971801fe40d453c31a (diff) |
tunnel: Add an initial set of unit tests
Includes a control set of broken configuration files that we attempt to parse and
verify that the parser fails in a predictable and consistent manner.
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to '.idea')
-rw-r--r-- | .idea/inspectionProfiles/Default.xml | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/.idea/inspectionProfiles/Default.xml b/.idea/inspectionProfiles/Default.xml index f048a118..dd766357 100644 --- a/.idea/inspectionProfiles/Default.xml +++ b/.idea/inspectionProfiles/Default.xml @@ -9,7 +9,6 @@ </option> <option name="nonThreadSafeTypes" value="" /> </inspection_tool> - <inspection_tool class="AndroidLintGoogleAppIndexingWarning" enabled="false" level="WARNING" enabled_by_default="false" /> <inspection_tool class="AndroidLintIconExpectedSize" enabled="true" level="WARNING" enabled_by_default="true" /> <inspection_tool class="AndroidLintNegativeMargin" enabled="true" level="WARNING" enabled_by_default="true" /> <inspection_tool class="AndroidLintTypographyQuotes" enabled="true" level="WARNING" enabled_by_default="true" /> @@ -40,7 +39,9 @@ <inspection_tool class="AssignmentToLambdaParameter" enabled="true" level="WARNING" enabled_by_default="true" /> <inspection_tool class="AssignmentToSuperclassField" enabled="true" level="WARNING" enabled_by_default="true" /> <inspection_tool class="AssignmentUsedAsCondition" enabled="true" level="WARNING" enabled_by_default="true" /> - <inspection_tool class="AutoCloseableResource" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="AutoCloseableResource" enabled="true" level="WARNING" enabled_by_default="true"> + <option name="METHOD_MATCHER_CONFIG" value="java.util.Formatter,format,java.io.Writer,append,com.google.common.base.Preconditions,checkNotNull,org.hibernate.Session,close,java.io.PrintWriter,printf,java.util.HashMap,put,java.util.Map,put" /> + </inspection_tool> <inspection_tool class="BadExceptionCaught" enabled="true" level="WARNING" enabled_by_default="true"> <option name="exceptionsString" value="" /> <option name="exceptions"> @@ -59,6 +60,9 @@ <inspection_tool class="CallToStringConcatCanBeReplacedByOperator" enabled="true" level="WARNING" enabled_by_default="true" /> <inspection_tool class="CannotResolve" enabled="true" level="ERROR" enabled_by_default="true" /> <inspection_tool class="CastConflictsWithInstanceof" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="CatchMayIgnoreException" enabled="true" level="WARNING" enabled_by_default="true"> + <option name="m_ignoreCatchBlocksWithComments" value="false" /> + </inspection_tool> <inspection_tool class="ChainedEquality" enabled="true" level="WARNING" enabled_by_default="true" /> <inspection_tool class="ClassInitializer" enabled="true" level="WARNING" enabled_by_default="true" /> <inspection_tool class="ClassNameDiffersFromFileName" enabled="true" level="WARNING" enabled_by_default="true" /> @@ -103,9 +107,6 @@ <inspection_tool class="DoubleLiteralMayBeFloatLiteral" enabled="true" level="WARNING" enabled_by_default="true" /> <inspection_tool class="DuplicateAlternationBranch" enabled="true" level="WARNING" enabled_by_default="true" /> <inspection_tool class="DuplicateBooleanBranch" enabled="true" level="WARNING" enabled_by_default="true" /> - <inspection_tool class="DuplicateCondition" enabled="true" level="WARNING" enabled_by_default="true"> - <option name="ignoreSideEffectConditions" value="true" /> - </inspection_tool> <inspection_tool class="DuplicateDeclarations" enabled="true" level="ERROR" enabled_by_default="true" /> <inspection_tool class="DynamicRegexReplaceableByCompiledPattern" enabled="true" level="WARNING" enabled_by_default="true" /> <inspection_tool class="ElementOnlyUsedFromTestCode" enabled="false" level="WARNING" enabled_by_default="false" /> @@ -196,7 +197,6 @@ <inspection_tool class="ImplicitSubclassInspection" enabled="false" level="ERROR" enabled_by_default="false" /> <inspection_tool class="IncompatibleTypes" enabled="true" level="ERROR" enabled_by_default="true" /> <inspection_tool class="InitializerIssues" enabled="true" level="ERROR" enabled_by_default="true" /> - <inspection_tool class="InnerClassMayBeStatic" enabled="true" level="WARNING" enabled_by_default="true" /> <inspection_tool class="InnerClassReferencedViaSubclass" enabled="true" level="WARNING" enabled_by_default="true" /> <inspection_tool class="InnerClassVariableHidesOuterClassVariable" enabled="true" level="WARNING" enabled_by_default="true"> <option name="m_ignoreInvisibleFields" value="true" /> @@ -215,7 +215,6 @@ <inspection_tool class="InstanceofThis" enabled="true" level="WARNING" enabled_by_default="true" /> <inspection_tool class="InstantiationOfUtilityClass" enabled="true" level="WARNING" enabled_by_default="true" /> <inspection_tool class="IntLiteralMayBeLongLiteral" enabled="true" level="WARNING" enabled_by_default="true" /> - <inspection_tool class="IntegerDivisionInFloatingPointContext" enabled="true" level="WARNING" enabled_by_default="true" /> <inspection_tool class="IntegerTypeRequired" enabled="true" level="ERROR" enabled_by_default="true" /> <inspection_tool class="InterfaceMayBeAnnotatedFunctional" enabled="true" level="INFORMATION" enabled_by_default="true" /> <inspection_tool class="InterfaceNamingConvention" enabled="false" level="WARNING" enabled_by_default="false"> @@ -294,6 +293,7 @@ <option name="ignoreForLoopDeclarations" value="true" /> </inspection_tool> <inspection_tool class="MultipleTopLevelClassesInFile" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="MultipleVariablesInDeclaration" enabled="true" level="WARNING" enabled_by_default="true" /> <inspection_tool class="NamedResource" enabled="true" level="ERROR" enabled_by_default="true" /> <inspection_tool class="NativeMethodNamingConvention" enabled="false" level="WARNING" enabled_by_default="false" /> <inspection_tool class="NegatedConditional" enabled="true" level="WARNING" enabled_by_default="true"> @@ -347,7 +347,6 @@ <inspection_tool class="OverriddenMethodCallDuringObjectConstruction" enabled="true" level="WARNING" enabled_by_default="true" /> <inspection_tool class="PackageInfoWithoutPackage" enabled="true" level="WARNING" enabled_by_default="true" /> <inspection_tool class="PointerTypeRequired" enabled="true" level="ERROR" enabled_by_default="true" /> - <inspection_tool class="PointlessNullCheck" enabled="true" level="WARNING" enabled_by_default="true" /> <inspection_tool class="ProblematicVarargsMethodOverride" enabled="true" level="WARNING" enabled_by_default="true" /> <inspection_tool class="ProtectedField" enabled="true" level="WARNING" enabled_by_default="true" /> <inspection_tool class="ProtectedInnerClass" enabled="true" level="WARNING" enabled_by_default="true"> @@ -394,7 +393,13 @@ <inspection_tool class="SizeReplaceableByIsEmpty" enabled="true" level="WARNING" enabled_by_default="true" /> <inspection_tool class="StaticCallOnSubclass" enabled="true" level="WARNING" enabled_by_default="true" /> <inspection_tool class="StaticFieldReferenceOnSubclass" enabled="true" level="WARNING" enabled_by_default="true" /> - <inspection_tool class="StaticImport" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="StaticImport" enabled="true" level="WARNING" enabled_by_default="true"> + <option name="allowedClasses"> + <set> + <option value="org.junit.Assert" /> + </set> + </option> + </inspection_tool> <inspection_tool class="StaticInheritance" enabled="true" level="WARNING" enabled_by_default="true" /> <inspection_tool class="StaticMethodNamingConvention" enabled="false" level="WARNING" enabled_by_default="false"> <option name="m_regex" value="[a-z][A-Za-z\d]*" /> @@ -432,7 +437,6 @@ <inspection_tool class="TemplateArgumentsIssues" enabled="true" level="ERROR" enabled_by_default="true" /> <inspection_tool class="TestMethodWithoutAssertion" enabled="false" level="WARNING" enabled_by_default="false"> <option name="assertionMethods" value="org.junit.Assert,assert.*|fail.*,junit.framework.Assert,assert.*|fail.*,org.junit.jupiter.api.Assertions,assert.*|fail.*,org.mockito.Mockito,verify.*,org.mockito.InOrder,verify,org.junit.rules.ExpectedException,expect.*,org.hamcrest.MatcherAssert,assertThat" /> - <option name="assertKeywordIsAssertion" value="false" /> </inspection_tool> <inspection_tool class="TestNGMethodNamingConvention" enabled="false" level="WARNING" enabled_by_default="false" /> <inspection_tool class="ThisEscapedInConstructor" enabled="true" level="WARNING" enabled_by_default="true" /> @@ -440,7 +444,6 @@ <option name="ignoreRethrownExceptions" value="true" /> </inspection_tool> <inspection_tool class="ThrowsRuntimeException" enabled="true" level="WARNING" enabled_by_default="true" /> - <inspection_tool class="ToArrayCallWithZeroLengthArrayArgument" enabled="true" level="WARNING" enabled_by_default="true" /> <inspection_tool class="TooBroadScope" enabled="true" level="WARNING" enabled_by_default="true"> <option name="m_allowConstructorAsInitializer" value="false" /> <option name="m_onlyLookAtBlocks" value="true" /> @@ -466,10 +469,8 @@ <inspection_tool class="UnnecessaryBlockStatement" enabled="true" level="WARNING" enabled_by_default="true"> <option name="ignoreSwitchBranches" value="false" /> </inspection_tool> - <inspection_tool class="UnnecessaryCallToStringValueOf" enabled="true" level="WARNING" enabled_by_default="true" /> <inspection_tool class="UnnecessaryConstantArrayCreationExpression" enabled="true" level="WARNING" enabled_by_default="true" /> <inspection_tool class="UnnecessaryConstructor" enabled="true" level="WARNING" enabled_by_default="true" /> - <inspection_tool class="UnnecessaryDefault" enabled="true" level="WARNING" enabled_by_default="true" /> <inspection_tool class="UnnecessaryExplicitNumericCast" enabled="true" level="WARNING" enabled_by_default="true" /> <inspection_tool class="UnnecessaryFullyQualifiedName" enabled="true" level="WARNING" enabled_by_default="true"> <option name="m_ignoreJavadoc" value="false" /> |