Search Options

Results per page
Sort
Preferred Languages
Advance

Results 601 - 610 of 920 for Ensure (0.04 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java

      }
    
      /**
       * Wrapper for {@link Map#get(Object)} that forces the caller to pass in a key of the same type as
       * the map. Besides being slightly shorter than code that uses {@link #getMap()}, it also ensures
       * that callers don't pass an {@link Entry} by mistake.
       */
      protected V get(K key) {
        return getMap().get(key);
      }
    
      protected final K k0() {
        return e0().getKey();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  2. prepare_stmt.go

    	}
    
    	return nil, ErrInvalidDB
    }
    
    func (db *PreparedStmtDB) Close() {
    	db.Mux.Lock()
    	defer db.Mux.Unlock()
    
    	for _, stmt := range db.Stmts {
    		go func(s *Stmt) {
    			// make sure the stmt must finish preparation first
    			<-s.prepared
    			if s.Stmt != nil {
    				_ = s.Close()
    			}
    		}(stmt)
    	}
    	// setting db.Stmts to nil to avoid further using
    	db.Stmts = nil
    }
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Aug 22 11:02:05 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  3. android-test/build.gradle.kts

    }
    
    val androidBuild = property("androidBuild").toString().toBoolean()
    
    android {
      compileSdk = 34
    
      namespace = "okhttp.android.test"
    
      defaultConfig {
        minSdk = 21
    
        // Make sure to use the AndroidJUnitRunner (or a sub-class) in order to hook in the JUnit 5 Test Builder
        testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
        testInstrumentationRunnerArguments += mapOf(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Jan 14 10:20:09 UTC 2024
    - 3K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/AbstractMapBasedMultiset.java

      // TODO(lowasser): consider overhauling this back to Map<E, Integer>
      private transient Map<E, Count> backingMap;
    
      /*
       * Cache the size for efficiency. Using a long lets us avoid the need for
       * overflow checking and ensures that size() will function correctly even if
       * the multiset had once been larger than Integer.MAX_VALUE.
       */
      private transient long size;
    
      /** Standard constructor. */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  5. docs/en/docs/advanced/additional-status-codes.md

    /// warning
    
    When you return a `Response` directly, like in the example above, it will be returned directly.
    
    It won't be serialized with a model, etc.
    
    Make sure it has the data you want it to have, and that the values are valid JSON (if you are using `JSONResponse`).
    
    ///
    
    /// note | "Technical Details"
    
    You could also use `from starlette.responses import JSONResponse`.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 16:12:23 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/cache2/FileOperator.kt

          mutablePos += bytesWritten
          mutableByteCount -= bytesWritten
        }
      }
    
      /**
       * Copy [byteCount] bytes from the file at [pos] into `sink`. It is the
       * caller's responsibility to make sure there are sufficient bytes to read: if there aren't this
       * method throws an `EOFException`.
       */
      fun read(
        pos: Long,
        sink: Buffer,
        byteCount: Long,
      ) {
        if (byteCount < 0L) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  7. test-site/conf/application.conf

    # application.global=Global
    
    # Router
    # ~~~~~
    # Define the Router object to use for this application.
    # This router will be looked up first when the application is starting up,
    # so make sure this is the entry point.
    # Furthermore, it's assumed your route file is named properly.
    # So for an application router like `conf/my.application.Router`,
    # you may need to define a router file `my.application.routes`.
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Mon Apr 20 08:41:37 UTC 2015
    - 2K bytes
    - Viewed (0)
  8. api/maven-api-plugin/src/test/java/org/apache/maven/api/plugin/descriptor/another/ExtendedPluginDescriptorTest.java

                }
            }
        }
    
        @Test
        void testExtendedPluginDescriptor() {
            ExtendedPluginDescriptor.Builder builder = new ExtendedPluginDescriptor.Builder();
            // make sure to call the subclasses' builder methods first, otherwise fluent API would not work
            builder.additionalField("additional")
                    .groupId("org.apache.maven")
                    .artifactId("maven-plugin-api")
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Tue Aug 27 07:05:43 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/testing.md

    ## Using `TestClient`
    
    /// info
    
    To use `TestClient`, first install <a href="https://www.python-httpx.org" class="external-link" target="_blank">`httpx`</a>.
    
    Make sure you create a [virtual environment](../virtual-environments.md){.internal-link target=_blank}, activate it, and then install it, for example:
    
    ```console
    $ pip install httpx
    ```
    
    ///
    
    Import `TestClient`.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  10. compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/DefaultResolutionErrorHandler.java

                        result.getMissingArtifacts(),
                        request.getRemoteRepositories());
            }
    
            // this should never happen since we checked all possible error sources before but better be sure
            if (result.hasExceptions()) {
                throw new ArtifactResolutionException(
                        "Unknown error during artifact resolution, " + request + ", " + result.getExceptions(),
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.7K bytes
    - Viewed (0)
Back to top