Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 26 for toRegex (0.13 sec)

  1. okhttp-android/src/test/kotlin/okhttp3/android/AndroidLoggingTest.kt

        }
    
        val logs = ShadowLog.getLogsForTag("testLoggingEventListener")
        assertThat(logs.map { it.type }).containsOnly(Log.INFO)
        assertThat(
          logs.map {
            it.msg.replace(
              "\\[\\d+ ms] ".toRegex(),
              "",
            )
          },
        ).containsExactly(
          "callStart: Request{method=GET, url=http://google.com/robots.txt}",
          "proxySelectStart: http://google.com/",
          "proxySelectEnd: [DIRECT]",
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 01 11:07:32 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  2. build-logic/cleanup/src/main/kotlin/gradlebuild/cleanup/Cleanup.kt

    import org.gradle.api.specs.Spec
    import org.gradle.kotlin.dsl.*
    import org.gradle.util.GradleVersion
    import java.io.File
    
    
    private
    val dirVersionPattern = "\\d+\\.\\d+(\\.\\d+)?(-\\w+)*(-\\d{14}[+-]\\d{4})?".toRegex()
    
    
    val logger = Logging.getLogger("gradlebuild.cleanup")
    
    
    /**
     * Removes state for versions that we're unlikely to ever need again, such as old snapshot versions.
     */
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Fri Jun 28 08:29:28 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  3. build-logic/cleanup/src/main/kotlin/gradlebuild/testing/services/BuildBucketProvider.kt

                    && versionUnderTest < GradleVersion.version(endVersionExclusive)
            }
    
            private
            fun extractTestTaskGradleVersion(name: String): String? = "gradle(.+)CrossVersionTest".toRegex().find(name)?.groupValues?.get(1)
        }
    
        class IncludeTestClassProvider(private val includeTestClasses: Map<String, List<String>>) : BuildBucketProvider {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Fri Jun 28 08:29:28 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  4. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/sources/JavaSourceQueries.kt

        matchesName(name.asString(), candidateName)
    
    
    private
    fun matchesName(name: String, candidateName: String) =
        name == candidateName.replace(".*\\$".toRegex(), "") // strip outer class names
    
    
    private
    fun BodyDeclaration<*>.isSince(version: String): Boolean =
        comment?.orElse(null)?.content?.contains("@since $version") == true
    
    
    private
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Fri Jun 28 08:29:24 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/RecordedResponse.kt

        }
    
      fun assertFailureMatches(vararg patterns: String) =
        apply {
          val message = failure!!.message!!
          assertThat(
            patterns.firstOrNull { pattern ->
              message.matches(pattern.toRegex())
            },
          ).isNotNull()
        }
    
      fun assertSentRequestAtMillis(
        minimum: Long,
        maximum: Long,
      ) = apply {
        assertDateInRange(minimum, response!!.sentRequestAtMillis, maximum)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/osgi/OsgiTest.kt

          deployFile(path)
        }
      }
    
      private fun RepositoryPlugin.deployClassPath() {
        val classpath = System.getProperty("java.class.path")
        val entries =
          classpath.split(File.pathSeparator.toRegex())
            .dropLastWhile { it.isEmpty() }
            .toTypedArray()
        for (classPathEntry in entries) {
          deployFile(classPathEntry.toPath())
        }
      }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  7. build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/AbstractCheckOrUpdateContributorsInReleaseNotes.kt

    
    data class GitHubPullRequest(
        val number: Int,
        val user: GitHubUser,
        val milestone: GitHubPullRequestMilestone?,
    )
    
    
    val contributorLineRegex = "\\[(.*)]\\(https://github.com/(.*)\\)".toRegex()
    
    
    const val PAGE_SIZE = 100
    
    
    @DisableCachingByDefault(because = "Depends on GitHub API")
    abstract class AbstractCheckOrUpdateContributorsInReleaseNotes : DefaultTask() {
        @get: Internal
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Fri Jun 28 08:29:28 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  8. .teamcity/src/test/kotlin/CIConfigIntegrationTests.kt

                    it.dependencies.items.size, stage.stageName.stageName
                )
            }
        }
    
        private
        val largeSubProjectRegex = """\((\w+(_\d+))\)""".toRegex()
    
        /**
         * Test Coverage - AllVersionsCrossVersion Java8 Oracle Linux (core_2) -> core_2
         */
        private
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Thu Jul 18 07:02:47 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/http/RetryAndFollowUpInterceptor.kt

        // https://tools.ietf.org/html/rfc7231#section-7.1.3
        // currently ignores a HTTP-date, and assumes any non int 0 is a delay
        if (header.matches("\\d+".toRegex())) {
          return Integer.valueOf(header)
        }
        return Integer.MAX_VALUE
      }
    
      companion object {
        /**
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 15 13:24:48 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  10. samples/guide/src/main/java/okhttp3/recipes/kt/WiresharkExample.kt

            javaClass.getDeclaredField("masterSecret")
              .apply {
                isAccessible = true
              }
              .get(this) as? SecretKey
    
        val randomRegex = "\"random\"\\s+:\\s+\"([^\"]+)\"".toRegex()
    
        fun register() {
          // Enable JUL logging for SSL events, must be activated early or via -D option.
          System.setProperty("javax.net.debug", "")
          logger =
            Logger.getLogger("javax.net.ssl")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 10.7K bytes
    - Viewed (0)
Back to top