Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 560 for testUtil (0.15 sec)

  1. src/test/java/org/codelibs/core/TestUtil.java

     */
    package org.codelibs.core;
    
    import static org.hamcrest.CoreMatchers.is;
    
    import org.hamcrest.CoreMatchers;
    import org.hamcrest.Matcher;
    
    /**
     * @author koichik
     */
    public abstract class TestUtil {
    
        /**
         * 実際の値が期待する{@literal clazz}と等しいかを検証する{@link Matcher}を返します。
         *
         * <pre>assertThat(clazz, is(Xxx.class));</pre>
         * <p>
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/graph/TestUtil.java

    import com.google.common.collect.Iterators;
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import java.util.Set;
    
    /** Utility methods used in various common.graph tests. */
    final class TestUtil {
      static final String ERROR_ELEMENT_NOT_IN_GRAPH = "not an element of this graph";
      static final String ERROR_NODE_NOT_IN_GRAPH =
          "Should not be allowed to pass a node that is not an element of the graph.";
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  3. tensorflow/cc/framework/testutil.cc

    See the License for the specific language governing permissions and
    limitations under the License.
    ==============================================================================*/
    
    #include "tensorflow/cc/framework/testutil.h"
    
    #include <utility>
    
    #include "tensorflow/cc/client/client_session.h"
    #include "tensorflow/core/framework/tensor_testutil.h"
    #include "tensorflow/core/graph/default_device.h"
    
    namespace tensorflow {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Sep 07 06:52:56 UTC 2017
    - 1.8K bytes
    - Viewed (0)
  4. tensorflow/cc/framework/testutil.h

    Rickard Hallerbäck <******@****.***> 1664984838 +0200
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 15:47:18 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  5. subprojects/core/src/test/groovy/org/gradle/api/internal/artifacts/publish/ArchivePublishArtifactTest.groovy

            a.type == "jar"
        }
    
        def "configures name correctly"() {
            def noName = testUtil.task(DummyJar)
            def withArchiveName = testUtil.task(DummyJar)
            withArchiveName.archiveFileName.set("hey")
            def withBaseName = testUtil.task(DummyJar)
            withBaseName.archiveBaseName.set("foo")
            def withAppendix = testUtil.task(DummyJar)
            withAppendix.archiveBaseName.set("foo")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Oct 28 15:32:09 UTC 2022
    - 3.2K bytes
    - Viewed (0)
  6. platforms/jvm/plugins-java-base/src/integTest/groovy/org/gradle/api/plugins/jvm/internal/AbstractJvmPluginServicesTest.groovy

        @Subject
        DefaultJvmPluginServices services = new DefaultJvmPluginServices(
            TestUtil.objectFactory(),
            TestUtil.providerFactory(),
            TestUtil.instantiatorFactory().decorateScheme().instantiator(),
            project
        )
    
        DefaultJvmLanguageUtilities jvmLanguageUtilities = new DefaultJvmLanguageUtilities(
            TestUtil.providerFactory(),
            instanceGenerator,
            project
        )
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 12:15:28 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  7. platforms/ide/ide/src/test/groovy/org/gradle/plugins/ide/eclipse/model/EclipseModelTest.groovy

            def xmlAction = {} as Action<XmlProvider>
            def facet = TestUtil.newInstance(EclipseWtpFacet, xmlMerger)
            def component = TestUtil.newInstance(EclipseWtpComponent, project, xmlMerger)
            model.wtp = TestUtil.newInstance(EclipseWtp)
    
            when: "configure wtp"
            model.wtp({ wtp ->
                wtp.component = component
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tf2xla/internal/test_matchers_test.cc

    absl::StatusOr<int> failed() {
      return absl::StatusOr<int>(absl::InternalError("fail"));
    }
    
    TEST(TestUtil, MatchesOk) { ASSERT_THAT(success(), IsOkOrFiltered()); }
    
    TEST(TestUtil, DoesntMatchesFailure) {
      ASSERT_THAT(failed(), Not(IsOkOrFiltered()));
    }
    
    TEST(TestUtil, MatchesFiltered) { ASSERT_THAT(filtered(), IsOkOrFiltered()); }
    
    TEST(TestUtil, IncrementsOk) {
      CellReader<int64_t> reader(kMetric);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 20:29:34 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  9. platforms/software/resources-http/src/test/groovy/org/gradle/internal/resource/transport/http/HttpClientHelperSSLTest.groovy

            then:
            Exception exception = thrown()
            // exact exception depends on JDK version
            TestUtil.isOrIsCausedBy(exception, UnrecoverableKeyException.class) or(
                TestUtil.isOrIsCausedBy(exception, SSLHandshakeException.class) or(
                    TestUtil.isOrIsCausedBy(exception, IOException.class)))
        }
    
        def "valid truststore file without specifying password"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Nov 07 05:29:07 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  10. platforms/software/resources/src/test/groovy/org/gradle/internal/resource/local/DefaultLocallyAvailableResourceTest.groovy

            given:
            def origin = tmpDir.file("origin")
            origin << "some text"
    
            when:
            def resource = new DefaultLocallyAvailableResource(origin, TestUtil.checksumService)
    
            then:
            resource.sha1 == TestUtil.checksumService.sha1(origin)
            resource.contentLength == origin.length()
            resource.lastModified == origin.lastModified()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 2.2K bytes
    - Viewed (0)
Back to top