Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getNodeText (0.08 sec)

  1. build-logic/buildquality/src/main/kotlin/gradlebuild/codenarc/rules/IntegrationTestFixturesRule.kt

        fun checkIndirectOutputContains(objectExpr: Expression, call: MethodCallExpression) {
            if (objectExpr is VariableExpression
                && objectExpr.name == "result"
            ) {
                val arg = AstUtil.getNodeText(call.arguments, sourceCode)
                addViolation(call, "Should use outputContains($arg) or failure.assertHasCause($arg) instead")
            }
        }
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 2.6K bytes
    - Viewed (0)
  2. build-logic-commons/code-quality-rules/src/main/java/gradlebuild/codenarc/rules/IntegrationTestFixtureVisitor.java

            if (objectExpr instanceof VariableExpression && ((VariableExpression) objectExpr).getName().equals("result")) {
                String arg = AstUtil.getNodeText(call.getArguments(), getSourceCode());
                addViolation(call, "Should use outputContains(" + arg + ") or failure.assertHasCause(" + arg + ") instead");
            }
        }
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 2.9K bytes
    - Viewed (0)
Back to top