Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 126 for reporter (0.55 sec)

  1. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/report/unbound/UnboundRulesReporterTest.groovy

     */
    
    package org.gradle.model.internal.report.unbound
    
    import org.gradle.util.internal.TextUtil
    import spock.lang.Specification
    
    class UnboundRulesReporterTest extends Specification {
    
        def output = new StringWriter()
    
        def reporter = new UnboundRulesReporter(new PrintWriter(output), "> ")
    
        def "reports on unbound rules"() {
            when:
            reporter.reportOn([
                    UnboundRule.descriptor("r1")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2K bytes
    - Viewed (0)
  2. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/steps/ValidateStep.java

            InternalProblems problemsService = validationContext.getProblemsService();
            InternalProblemReporter reporter = problemsService.getInternalReporter();
            List<Problem> problems = validationContext.getProblems();
            for (Problem problem : problems) {
                reporter.report(problem);
            }
    
            Map<Severity, ImmutableList<Problem>> problemsMap = problems.stream()
                .collect(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/registry/UnboundRulesProcessorTest.groovy

        String getReportForProcessedBinders() {
            reportFor(new UnboundRulesProcessor(binders, suggestionProvider).process())
        }
    
        void binder(@DelegatesTo(RuleBinderTestBuilder) Closure config) {
            binders << ConfigureUtil.configure(config, new RuleBinderTestBuilder()).build()
        }
    
        String reportFor(UnboundRule.Builder... rules) {
            reportFor(rules.toList()*.build())
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  4. platforms/core-configuration/kotlin-dsl/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/LocationAwareScriptEvaluationIntegrationTest.kt

            val script = withBuildScript("buildscript { $boom }")
    
            assertFailingBuildOutputOf("help") {
                """
                * Where:
                Build file '${script.canonicalPath}' line: 1
                """
            }
        }
    
        @Test
        fun `location of exception thrown from plugins block is reported`() {
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  5. platforms/core-configuration/kotlin-dsl/src/integTest/kotlin/org/gradle/kotlin/dsl/resolver/KotlinScriptDependenciesResolverTest.kt

            assertSingleEditorReport()
            reports.single().let { report ->
                assertThat(report.severity, equalTo(severity))
                assertThat(report.position, nullValue())
                assertThat(report.message, equalTo(message))
            }
        }
    
        fun assertSingleLineWarningReport(message: String, line: Int) {
            assertSingleEditorReport()
            reports.single().let { report ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 05:12:50 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  6. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/analysis/LambdaTest.kt

    import kotlin.reflect.KClass
    import kotlin.test.Test
    import kotlin.test.assertTrue
    
    
    object LambdaTest {
        @Test
        fun `if a lambda is required, missing lambda is reported as an error`() {
            schema.resolve("lambdaRequired(0)").isError(ErrorReason.UnresolvedFunctionCallSignature::class)
        }
    
        @Test
        fun `if a lambda is required, a lambda is accepted`() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 26 12:27:49 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  7. platforms/core-configuration/configuration-cache/src/test/kotlin/org/gradle/internal/cc/impl/fingerprint/ConfigurationCacheFingerprintCheckerTest.kt

    import org.junit.Test
    import java.io.File
    import java.io.InputStream
    import java.io.OutputStream
    
    
    class ConfigurationCacheFingerprintCheckerTest {
    
        @Test
        fun `first modified init script is reported`() {
            assertThat(
                invalidationReasonForInitScriptsChange(
                    from = listOf(
                        File("init.gradle.kts") to TestHashCodes.hashCodeFrom(1),
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  8. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/problems/ConfigurationCacheProblemsSummary.kt

        Suppressed
    }
    
    
    /**
     * This class is thread-safe.
     */
    internal
    class ConfigurationCacheProblemsSummary(
    
        private
        val maxCollectedProblems: Int = 4096
    
    ) {
        /**
         * Reported more problems than can be collected.
         */
        private
        var overflowed: Boolean = false
    
        private
        var problemCount: Int = 0
    
        private
        var failureCount: Int = 0
    
        private
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:07:53 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  9. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheValueSourceIntegrationTest.groovy

            "rethrown"                  | "throw ex"           | 2  // The original exception propagates and fails the build, and configuration cache problem is reported too.
            "ignored"                   | "// ignored"         | 1  // Only the configuration cache problem is reported
        }
    
        def "exception thrown from ValueSource when populating the cache invalidates the entry upon fingerprint check "() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  10. build-logic/performance-testing/src/main/kotlin/gradlebuild/performance/PerformanceTestPlugin.kt

        tasks.register("${performanceReport.name}ResultsZip", Zip::class) {
            from(performanceReport.get().reportDir.locationOnly) {
                into("report")
            }
            from(performanceReport.get().performanceResults) {
                into("perf-results")
            }
            destinationDirectory = layout.buildDirectory
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 04 06:42:07 UTC 2024
    - 24.4K bytes
    - Viewed (0)
Back to top