- Sort Score
- Num 10 results
- Language All
Results 291 - 300 of 1,539 for afterFn (0.06 seconds)
-
src/bytes/example_test.go
fmt.Println(bytes.Count([]byte("five"), []byte(""))) // before & after each rune // Output: // 3 // 5 } func ExampleCut() { show := func(s, sep string) { before, after, found := bytes.Cut([]byte(s), []byte(sep)) fmt.Printf("Cut(%q, %q) = %q, %q, %v\n", s, sep, before, after, found) } show("Gopher", "Go") show("Gopher", "ph") show("Gopher", "er")
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Mon May 12 16:07:54 GMT 2025 - 16.5K bytes - Click Count (0) -
src/bufio/scan.go
// // Buffer panics if it is called after scanning has started. func (s *Scanner) Buffer(buf []byte, max int) { if s.scanCalled { panic("Buffer called after Scan") } s.buf = buf[0:cap(buf)] s.maxTokenSize = max } // Split sets the split function for the [Scanner]. // The default split function is [ScanLines]. // // Split panics if it is called after scanning has started.
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Wed May 21 18:05:26 GMT 2025 - 14.2K bytes - Click Count (0) -
android/guava/src/com/google/common/base/Splitter.java
/** * Returns the first index in {@code toSplit} at or after {@code start} that contains the * separator. */ abstract int separatorStart(int start); /** * Returns the first index in {@code toSplit} after {@code separatorPosition} that does not * contain a separator. This method is only invoked after a call to {@code separatorStart}. */Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 23 19:19:10 GMT 2026 - 23.8K bytes - Click Count (0) -
tests/create_test.go
t.Fatalf("failed to query data after create from slice of map, got error %v", err) } var result3 User if err := DB.Where("name = ?", "create_from_map_3").First(&result3).Error; err != nil || result3.Age != 20 { t.Fatalf("failed to query data after create from slice of map, got error %v", err) } } func TestCreateWithAssociations(t *testing.T) {
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Mon Jul 21 09:55:20 GMT 2025 - 26.8K bytes - Click Count (0) -
cmd/site-replication.go
var err error // skip overwrite of local update if peer sent stale info if !updatedAt.IsZero() { if p, err := globalIAMSys.store.GetPolicyDoc(policyName); err == nil && p.UpdateDate.After(updatedAt) { return nil } } if p == nil { err = globalIAMSys.DeletePolicy(ctx, policyName, true) } else { _, err = globalIAMSys.SetPolicy(ctx, policyName, *p) } if err != nil {
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 184.8K bytes - Click Count (1) -
android/guava/src/com/google/common/collect/EnumHashBiMap.java
// TODO(b/192446998): Remove this override after tools understand nullness better. public @Nullable V put(K key, @ParametricNullness V value) { return super.put(key, value); } @CanIgnoreReturnValue @Override @SuppressWarnings("RedundantOverride") // b/192446478: RedundantOverride ignores some annotations. // TODO(b/192446998): Remove this override after tools understand nullness better.
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Sep 22 15:50:50 GMT 2025 - 5.2K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/testers/MapPutAllTester.java
assertThrows(NullPointerException.class, () -> putAll(containsNullKey)); expectUnchanged(); expectNullKeyMissingWhenNullKeysUnsupported( "Should not contain null key after unsupported putAll(containsNullKey)"); } @MapFeature.Require({SUPPORTS_PUT, ALLOWS_NULL_VALUES}) public void testPutAll_nullValueSupported() { putAll(containsNullValue);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 6.8K bytes - Click Count (0) -
src/test/java/jcifs/smb1/ntlmssp/NtlmMessageTest.java
msg.setFlag(0x4, true); assertTrue(msg.getFlag(0x4), "Bit should be set after setFlag(true)"); } @Test @DisplayName("setFlag false clears the bit") void testSetFlagFalse() { msg.setFlag(0x4, true); msg.setFlag(0x4, false); assertFalse(msg.getFlag(0x4), "Bit should be cleared after setFlag(false)"); } // ---------------- Static read tests -----------------
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 6.8K bytes - Click Count (0) -
src/test/java/jcifs/SmbTreeHandleTest.java
assertTrue(smbTreeHandle.isConnected(), "isConnected() should return true"); when(smbTreeHandle.isConnected()).thenReturn(false); assertFalse(smbTreeHandle.isConnected(), "isConnected() should return false after status change"); } /** * Test for getServerTimeZoneOffset() method. * Verifies that the method returns the correct time zone offset. * @throws CIFSException */ @Test
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7.1K bytes - Click Count (0) -
src/test/java/jcifs/smb/DirFileEntryEnumIterator2Test.java
// Next page fetched via fetchMore() assertTrue(it.hasNext(), "Iterator should have third element after fetchMore"); assertSame(fe3, it.next(), "Third element from second page"); // After last element, hasNext should be false and calling close() should send Smb2CloseRequest once assertFalse(it.hasNext(), "Iterator should be exhausted");Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 13.7K bytes - Click Count (0)