- Sort Score
- Num 10 results
- Language All
Results 1721 - 1730 of 2,832 for contains (0.14 seconds)
-
cmd/net_test.go
t.Fatalf("error: expected = %v, got = %v", testCase.expectedErr, err) } if testCase.expectedIPList != nil { var found bool for _, ip := range ipList.ToSlice() { if testCase.expectedIPList.Contains(ip) { found = true } } if !found { t.Fatalf("host: expected = %v, got = %v", testCase.expectedIPList, ipList) } } } } // Tests finalize api endpoints.
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Oct 10 18:57:03 GMT 2025 - 9.2K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/SmbComWriteAndXResponseTest.java
response.count = 12345L; String result = response.toString(); // The toString method should return a string containing the count. assertTrue(result.contains("count=12345")); }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 2.4K bytes - Click Count (0) -
internal/event/target/postgresql_test.go
"database/sql" "slices" "testing" ) // TestPostgreSQLRegistration checks if postgres driver // is registered and fails otherwise. func TestPostgreSQLRegistration(t *testing.T) { var found bool if slices.Contains(sql.Drivers(), "postgres") { found = true } if !found { t.Fatal("postgres driver not registered") } } func TestPsqlTableNameValidation(t *testing.T) {
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 1.6K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/AndXServerMessageBlockTest.java
byte[] buf = new byte[128]; block.writeAndXWireFormat(buf, 0); String s = block.toString(); assertNotNull(s); assertTrue(s.contains("andxCommand=0x")); assertTrue(s.contains("andxOffset=")); }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12.5K bytes - Click Count (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/ModelVersionUtilsTest.java
assertNotNull(schemaLocation); assertTrue( schemaLocation.contains(targetVersion), "Expected " + schemaLocation + " to contain " + targetVersion); } @Test @DisplayName("should handle unknown model version in schema location")
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Nov 18 18:03:26 GMT 2025 - 19.6K bytes - Click Count (0) -
build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/AbstractSuperClassChangesRule.groovy
protected boolean isInternal(CtClass c) { if (c.name.startsWith("java.")) { return false } else if (c.name.contains('.internal.')) { return true } else { return !publicApiPatterns.any { it.matcher(c.name).find() } } }Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Wed Dec 24 14:15:15 GMT 2025 - 2.2K bytes - Click Count (0) -
samples/guide/src/main/java/okhttp3/recipes/CheckHandshake.java
for (Certificate certificate : chain.connection().handshake().peerCertificates()) { String pin = CertificatePinner.pin(certificate); if (denylist.contains(pin)) { throw new IOException("Denylisted peer certificate: " + pin); } } return chain.proceed(chain.request()); } };
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Mon Apr 15 14:55:09 GMT 2024 - 2.1K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/com/SmbComWriteResponseTest.java
byte[] buf = new byte[12]; buf[0] = 0x00; buf[1] = 0x02; // count = 512 in little-endian resp.readParameterWordsWireFormat(buf, 0); String str = resp.toString(); assertTrue(str.contains("count=512"), "toString should include numeric count"); } @Test public void testReturnFromReadParameterWordsWireFormatIs8() { // ensure the method returns 8 as claimed
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 2.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/io/TestOutputStream.java
@Override public void close() throws IOException { closed = true; super.close(); throwIf(CLOSE_THROWS); } private void throwIf(TestOption option) throws IOException { throwIf(options.contains(option)); } private static void throwIf(boolean condition) throws IOException { if (condition) { throw new IOException(); } }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 2.3K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/Trans2SetFileInformationTest.java
void testToString() { // When String result = trans2SetFileInformation.toString(); // Then assertTrue(result.startsWith("Trans2SetFileInformation[")); assertTrue(result.contains("fid=" + fid)); }
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 3.3K bytes - Click Count (0)