Search Options

Results per page
Sort
Preferred Languages
Advance

Results 981 - 990 of 1,248 for assertIs (0.09 sec)

  1. android/guava-tests/test/com/google/common/collect/ImmutableRangeMapTest.java

    package com.google.common.collect;
    
    import static com.google.common.collect.BoundType.OPEN;
    import static com.google.common.collect.Maps.immutableEntry;
    import static com.google.common.truth.Truth.assertThat;
    import static org.junit.Assert.assertThrows;
    
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.testing.SerializableTester;
    import java.util.Map.Entry;
    import java.util.NoSuchElementException;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

    import java.lang.reflect.Modifier;
    import java.util.Collection;
    import java.util.List;
    import java.util.Map.Entry;
    import java.util.Set;
    import javax.annotation.CheckForNull;
    import junit.framework.Assert;
    import junit.framework.AssertionFailedError;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Tester that runs automated sanity tests for any given class. A typical use case is to test static
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:18:12 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/primitives/IntsTest.java

        assertThat(Ints.tryParse("\u0662\u06f3")).isNull();
      }
    
      /**
       * Applies {@link Ints#tryParse(String)} to the given string and asserts that the result is as
       * expected.
       */
      private static void tryParseAndAssertEquals(Integer expected, String value) {
        assertThat(Ints.tryParse(value)).isEqualTo(expected);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 29.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/primitives/LongsTest.java

            .isNull();
        assertThat(Longs.tryParse("\u0662\u06f3")).isNull();
      }
    
      /**
       * Applies {@link Longs#tryParse(String)} to the given string and asserts that the result is as
       * expected.
       */
      private static void tryParseAndAssertEquals(Long expected, String value) {
        assertThat(Longs.tryParse(value)).isEqualTo(expected);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 29.8K bytes
    - Viewed (0)
  5. licenses/github.com/spf13/cobra/LICENSE.txt

          of any other Contributor, and only if You agree to indemnify,
          defend, and hold each Contributor harmless for any liability
          incurred by, or claims asserted against, such Contributor by reason
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Sat Oct 26 02:47:39 UTC 2019
    - 9.9K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java

          try {
            iterator.remove();
            fail("Remove on unmodifiable iterator succeeded");
          } catch (UnsupportedOperationException expected) {
          }
        }
      }
    
      /**
       * Asserts that two iterators contain elements in tandem.
       *
       * <p>This test only works with iterators that iterate over a finite set.
       */
      public static void assertIteratorsInOrder(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  7. cmd/erasure-metadata_test.go

    			t.Fatalf("%+v: expected = %d, got: %d", testCase, testCase.expectedIndex, index)
    		}
    	}
    }
    
    // Test objectPartIndex(). generates a sample FileInfo data and asserts
    // the output of objectPartIndex() with the expected value.
    func TestObjectPartIndex(t *testing.T) {
    	testCases := []struct {
    		partNum       int
    		expectedIndex int
    	}{
    		{2, 1},
    		{1, 0},
    		{5, 3},
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jul 25 21:02:50 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  8. tensorflow/c/eager/c_api_unified_experimental.cc

      static FactoriesMap* factories = new FactoriesMap;
      return *factories;
    }
    
    static tracing::FactoryFunction default_factory;
    
    void RegisterTracingEngineFactory(const string& name, FactoryFunction factory) {
      assert((!GetFactories().count(name)) ||
             (GetFactories()[name] == factory) &&
                 "Duplicate tracing factory registration");
      GetFactories()[name] = factory;
    }
    
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 9K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/testing.md

    Create functions with a name that starts with `test_` (this is standard `pytest` conventions).
    
    Use the `TestClient` object the same way as you do with `httpx`.
    
    Write simple `assert` statements with the standard Python expressions that you need to check (again, standard `pytest`).
    
    ```Python hl_lines="2  12  15-18"
    {!../../docs_src/app_testing/tutorial001.py!}
    ```
    
    /// tip
    
    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. LICENSES/third_party/forked/cgroups/LICENSE

          of any other Contributor, and only if You agree to indemnify,
          defend, and hold each Contributor harmless for any liability
          incurred by, or claims asserted against, such Contributor by reason
          of your accepting any such warranty or additional liability.
    
       END OF TERMS AND CONDITIONS
    
       APPENDIX: How to apply the Apache License to your work.
    
    Registered: Fri Nov 01 09:05:11 UTC 2024
    - Last Modified: Thu Oct 31 17:42:39 UTC 2024
    - 11.1K bytes
    - Viewed (0)
Back to top