Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for lineNumberOf (0.31 sec)

  1. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/AbstractJUnitConsoleLoggingIntegrationTest.groovy

                ${maybeParentheses('badTest')} FAILED
                    java.lang.RuntimeException: bad
                        at org.gradle.SomeTest.beBad(SomeTest.java:${lineNumberOf('throw new RuntimeException("bad")')})
                        at org.gradle.SomeTest.badTest(SomeTest.java:${lineNumberOf('beBad();')})
            """.stripIndent())
    
            outputContains("${maybeParentheses('ignoredTest')} SKIPPED")
    
            outputContains("SomeTest FAILED")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 06 06:58:24 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  2. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/execution/ProgramSource.kt

        fun preserve(ranges: List<IntRange>): ProgramText =
            preserve(*ranges.toTypedArray())
    
        fun subText(range: IntRange): ProgramText =
            ProgramText(text.substring(range))
    
        internal
        fun lineNumberOf(index: Int): Int =
            text.lineAndColumnFor(index).first
    
        private
        fun complementOf(ranges: Array<out IntRange>): ArrayList<IntRange> {
            require(ranges.isNotEmpty())
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 4.5K bytes
    - Viewed (0)
Back to top