Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 39 for level (0.25 sec)

  1. platforms/core-configuration/configuration-cache/src/test/kotlin/org/gradle/internal/cc/impl/serialization/codecs/UserTypesCodecTest.kt

        @Test
        fun `preserves identity of java util logging Level`() {
            configurationCacheRoundtripOf(java.util.logging.Level.INFO to java.util.logging.Level.WARNING).run {
                assertThat(
                    first,
                    sameInstance(java.util.logging.Level.INFO)
                )
                assertThat(
                    second,
                    sameInstance(java.util.logging.Level.WARNING)
                )
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  2. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/execution/PartialEvaluatorTest.kt

    import org.hamcrest.CoreMatchers.equalTo
    import org.hamcrest.MatcherAssert.assertThat
    import org.junit.Assert.fail
    import org.junit.Test
    
    
    class PartialEvaluatorTest {
    
        @Test
        fun `Project target - top-level - empty`() {
    
            assertThat(
                "reduces to static program that applies default plugin requests and base plugins",
                partialEvaluationOf(
                    Program.Empty,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 38.9K bytes
    - Viewed (0)
  3. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/ConfigurationDeprecatedExtensions.kt

    @Deprecated(deprecationMessage, replaceWith = ReplaceWith("get().buildDependencies"), level = DeprecationLevel.HIDDEN)
    val <T : Configuration> NamedDomainObjectProvider<T>.buildDependencies: TaskDependency
        get() = get().buildDependencies
    
    
    /**
     * See [Configuration.getSingleFile].
     */
    @Deprecated(deprecationMessage, replaceWith = ReplaceWith("get().singleFile"), level = DeprecationLevel.HIDDEN)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 28 18:18:46 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  4. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/execution/Combinators.kt

        companion object {
            var level = 0
    
            fun <T> debug(name: String, parser: Parser<T>): Parser<T> = {
                val levelString = "\t".repeat(level)
                println("${levelString}Parsing with $name @ ${this.currentPosition.offset} ...")
                level++
                val result = parser()
                level--
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 12.9K bytes
    - Viewed (0)
  5. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/analysis/LocalValueTest.kt

                assertIs<ObjectOrigin.NewObjectFromMemberFunction>(this)
                assertEquals("my2", function.simpleName)
            }
        }
    
        @Test
        fun `a local value cannot be used until assigned at top level`() {
            val resolution = schema.resolve(
                """
                my {
                    my = m
                }
    
                val m = my1()
    
                my {
                    my = m
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 02 12:28:39 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  6. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/execution/LexerTest.kt

    import org.hamcrest.CoreMatchers.equalTo
    import org.hamcrest.MatcherAssert.assertThat
    
    import org.junit.Test
    
    
    class LexerTest {
    
        @Test
        fun `extracts comments, annotations and top-level blocks`() {
    
            assertThat(
                lex(
                    "/* ... @TaskAction ... */" +
                        "\n// ... @Suppress(\"unused_variable\")" +
                        "\nbuildscript { /*" +
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  7. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/execution/TopLevelBlockExtractionTest.kt

        @Test
        fun `given top-level buildscript reference it returns null`() {
            assertNoBuildscript(
                """
                val a = buildscript
                a.dependencies {}"""
            )
        }
    
        @Test
        fun `given top-level buildscript reference followed by top-level buildscript it returns correct range`() {
            assertThat(
                extractBuildscriptBlockFrom("val a = buildscript\nbuildscript {}"),
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  8. platforms/core-configuration/declarative-dsl-evaluator/src/main/kotlin/org/gradle/internal/declarativedsl/evaluator/conventions/ConventionsResolutionProcessor.kt

        (parent as? ObjectOrigin.AccessAndConfigureReceiver)?.function?.simpleName == ConventionsTopLevelReceiver::conventions.name
    
    
    /**
     * Checks if a given ObjectOrigin receiver is the top-level receiver.
     */
    private
    fun isTopLevelReceiver(objectOrigin: ObjectOrigin) =
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 31 13:47:38 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  9. platforms/core-configuration/graph-serialization/src/main/kotlin/org/gradle/internal/serialize/graph/LoggingTracer.kt

    import org.gradle.api.logging.Logger
    
    
    class LoggingTracer(
        private val profile: String,
        private val writePosition: () -> Long,
        private val logger: Logger,
        private val level: LogLevel
    ) : Tracer {
    
        // Include a sequence number in the events so the order of events can be preserved in face of log output reordering
        private
        var nextSequenceNumber = 0L
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 20:48:51 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  10. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/ConfigurationCacheIO.kt

                ) to codecs
            }
    
        private
        fun loggingTracerFor(profile: () -> String, encoder: KryoBackedEncoder) =
            loggingTracerLogLevel()?.let { level ->
                LoggingTracer(profile(), encoder::getWritePosition, logger, level)
            }
    
        private
        fun loggingTracerLogLevel(): LogLevel? = when {
            startParameter.isDebug -> LogLevel.LIFECYCLE
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 13.7K bytes
    - Viewed (0)
Back to top