Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for fromlen (0.17 sec)

  1. src/strings/builder_test.go

    	}
    }
    
    func TestBuilderGrow(t *testing.T) {
    	for _, growLen := range []int{0, 100, 1000, 10000, 100000} {
    		p := bytes.Repeat([]byte{'a'}, growLen)
    		allocs := testing.AllocsPerRun(100, func() {
    			var b Builder
    			b.Grow(growLen) // should be only alloc, when growLen > 0
    			if b.Cap() < growLen {
    				t.Fatalf("growLen=%d: Cap() is lower than growLen", growLen)
    			}
    			b.Write(p)
    			if b.String() != string(p) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 19 19:51:15 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/SafeTreeMap.java

      }
    
      @Override
      public NavigableMap<K, V> subMap(K fromKey, boolean fromInclusive, K toKey, boolean toInclusive) {
        return new SafeTreeMap<>(
            delegate.subMap(checkValid(fromKey), fromInclusive, checkValid(toKey), toInclusive));
      }
    
      @Override
      public SortedMap<K, V> subMap(K fromKey, K toKey) {
        return subMap(fromKey, true, toKey, false);
      }
    
      @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/SafeTreeMap.java

      }
    
      @Override
      public NavigableMap<K, V> subMap(K fromKey, boolean fromInclusive, K toKey, boolean toInclusive) {
        return new SafeTreeMap<>(
            delegate.subMap(checkValid(fromKey), fromInclusive, checkValid(toKey), toInclusive));
      }
    
      @Override
      public SortedMap<K, V> subMap(K fromKey, K toKey) {
        return subMap(fromKey, true, toKey, false);
      }
    
      @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  4. ci/official/utilities/setup.sh

      # Load those stored pre-existing TFCI_ vars, if any
      if [[ -s "$FROM_ENV" ]]; then
        echo '==TFCI==: NOTE: Loading the following env parameters, which were'
        echo 'already set in the shell environment. If you want to disable this'
        echo 'behavior, create a new shell.'
        cat "$FROM_ENV"
        source "$FROM_ENV"
        rm "$FROM_ENV"
      fi
    fi
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jan 26 00:33:34 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  5. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerAdapter.kt

       *
       * If there's nothing to read and no default value, this will throw an exception.
       */
      fun fromDer(reader: DerReader): T
    
      fun fromDer(byteString: ByteString): T {
        val buffer = Buffer().write(byteString)
        val reader = DerReader(buffer)
        return fromDer(reader)
      }
    
      /**
       * Writes [value] to this adapter, unless it is the default value and can be safely omitted.
       *
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  6. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/daemon/AbstractDaemonFixture.groovy

        }
    
        @Override
        boolean logContains(String searchString) {
            logContains(0, searchString)
        }
    
        @Override
        boolean logContains(long fromLine, String searchString) {
            daemonLog.lines().withCloseable { lines ->
                lines.skip(fromLine).anyMatch { it.contains(searchString) }
            }
        }
    
        @Override
        long getLogLineCount() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 15:22:16 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  7. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/daemon/DaemonFixture.java

        boolean logContains(String searchString);
    
        /**
         * Returns whether the log file contains a given String, starting from line `fromLine`
         *
         * The first line in the file is the line 0.
         *
         * Works without reading the whole log file into memory.
         */
        boolean logContains(long fromLine, String searchString);
    
        /**
         * Returns the number of lines in the daemon log.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  8. platforms/jvm/jvm-services/src/integTest/groovy/org/gradle/jvm/toolchain/JavaInstallationRegistryIntegrationTest.groovy

                .withArgument("-Porg.gradle.java.installations.paths=${new File("/unknown/path").absolutePath}," + secondJavaHome)
                .withArgument("-Porg.gradle.java.installations.fromEnv=JDK1,JDK2")
                .withArgument("--info")
                .withTasks("show")
                .run()
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 18:29:03 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  9. subprojects/core/src/integTest/groovy/org/gradle/initialization/PropertiesLoaderIntegrationTest.groovy

                    }
                }
            """
    
            when:
            executer.withEnvironmentVars(ORG_GRADLE_PROJECT_myProp: 'fromEnv')
    
            then:
            succeeds 'printProperty'
    
            and:
            outputContains("myProp=fromEnv")
    
            when:
            executer.withEnvironmentVars(ORG_GRADLE_PROJECT_myProp: 'fromEnv2')
    
            then:
            succeeds 'printProperty'
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  10. testing/soak/src/integTest/groovy/org/gradle/vfs/FileSystemWatchingSoakTest.groovy

                return 150
            } else {
                return 1000
            }
        }
    
        private static boolean detectOverflow(DaemonFixture daemon, long fromLine) {
            boolean overflowDetected = daemon.logContains(fromLine, FileWatcherRegistry.Type.OVERFLOW.toString())
            if (overflowDetected) {
                println "Detected overflow in watcher, no files will be retained for the next build"
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 8.6K bytes
    - Viewed (0)
Back to top