- Sort Score
- Num 10 results
- Language All
Results 281 - 290 of 1,332 for Assert (0.1 seconds)
-
internal/deadlineconn/deadlineconn_test.go
if err != nil { t.Fatalf("unable to create listener. %v", err) } defer l.Close() serverAddr := l.Addr().String() tcpListener, ok := l.(*net.TCPListener) if !ok { t.Fatalf("failed to assert to net.TCPListener") } var wg sync.WaitGroup wg.Add(1) go func() { defer wg.Done() tcpConn, terr := tcpListener.AcceptTCP() if terr != nil {Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Mon Nov 11 17:15:17 GMT 2024 - 4.8K bytes - Click Count (0) -
tests/prepared_stmt_test.go
} // Wait for 40 seconds to give the statements in the cache enough time to expire. time.Sleep(time.Second * 40) // Assert whether the connection pool of tx is successfully converted to the *gorm.PreparedStmtDB type. AssertEqual(t, ok, true) // Assert whether the number of statement keys stored in the PreparedStmtDB is 0 after 40 seconds.
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Fri Apr 25 08:22:26 GMT 2025 - 8K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/LockHeldAssertingSet.java
import static com.google.common.base.Preconditions.checkNotNull; import static junit.framework.Assert.assertTrue; import java.io.Serializable; import java.util.Collection; import java.util.Set; import org.jspecify.annotations.NullUnmarked; import org.jspecify.annotations.Nullable; /** * {@link Set} implementation that asserts that a given lock is held whenever one of its methods is * called. */ @NullUnmarkedCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Feb 13 17:34:21 GMT 2025 - 4.3K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/LockHeldAssertingSet.java
import static junit.framework.Assert.assertTrue; import java.io.Serializable; import java.util.Collection; import java.util.Set; import java.util.Spliterator; import java.util.stream.Stream; import org.jspecify.annotations.NullUnmarked; import org.jspecify.annotations.Nullable; /** * {@link Set} implementation that asserts that a given lock is held whenever one of its methods is * called.Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Feb 13 17:34:21 GMT 2025 - 4.4K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/suggest/settings/AnalyzerSettingsTest.java
*/ package org.codelibs.fess.suggest.settings; import static org.codelibs.opensearch.runner.OpenSearchRunner.newConfigs; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import java.util.List; import java.util.Set; import org.codelibs.fess.suggest.Suggester; import org.codelibs.fess.suggest.analysis.SuggestAnalyzer;
Created: Fri Apr 17 09:08:13 GMT 2026 - Last Modified: Sun Feb 01 12:48:24 GMT 2026 - 8K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/mylasta/FessLastaDocTest.java
return; } final String className = clazz.getName(); if (className.contains(appWebPkg) && className.endsWith(actionSuffix)) { // ## Assert ## markHere("exists"); getComponent(clazz); // expect no exception } }); assertMarked("exists"); } */Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 2.3K bytes - Click Count (0) -
build-logic/buildquality/src/main/kotlin/gradlebuild.verify-build-environment.gradle.kts
* limitations under the License. */ import java.nio.charset.Charset tasks.register("verifyIsProductionBuildEnvironment") { doLast { val systemCharset = Charset.defaultCharset().name() assert(systemCharset == "UTF-8") { "Platform encoding must be UTF-8. Is currently $systemCharset. Set -Dfile.encoding=UTF-8" } }
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Mon Feb 01 09:48:30 GMT 2021 - 941 bytes - Click Count (0) -
src/test/java/jcifs/spnego/NegTokenTargTest.java
// Act – serialise and parse back byte[] bytes = original.toByteArray(); NegTokenTarg roundTrip = new NegTokenTarg(bytes); // Assert – all getters match the original values assertEquals(NegTokenTarg.ACCEPT_COMPLETED, roundTrip.getResult(), "result should roundtrip"); assertEquals(mech, roundTrip.getMechanism(), "mechanism should roundtrip");Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 3.6K bytes - Click Count (0) -
android/guava/src/com/google/common/hash/LittleEndianByteArray.java
* @param offset the offset into the array at which to start writing * @param value the value to write */ static void store64(byte[] sink, int offset, long value) { // We don't want to assert in production code. assert offset >= 0 && offset + 8 <= sink.length; // Delegates to the fast (unsafe)version or the fallback. byteArray.putLongLittleEndian(sink, offset, value); } /**
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Apr 01 17:27:13 GMT 2026 - 10.1K bytes - Click Count (0) -
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/docker/DockerSupportPlugin.java
) ); // Ensure that if we are trying to run any DockerBuildTask tasks, we assert an available Docker installation exists project.getGradle().getTaskGraph().whenReady(graph -> { List<String> dockerTasks = graph.getAllTasks() .stream()Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Jun 01 09:19:30 GMT 2021 - 2.2K bytes - Click Count (0)