- Sort Score
- Num 10 results
- Language All
Results 1071 - 1080 of 3,128 for rint (0.09 seconds)
-
tests/soft_delete_test.go
t.Fatalf("invalid sql generated, got %v", actualSQL) } } func TestSoftDeleteZeroValue(t *testing.T) { type SoftDeleteBook struct { ID uint Name string Pages uint DeletedAt gorm.DeletedAt `gorm:"zeroValue:'1970-01-01 00:00:01'"` } DB.Migrator().DropTable(&SoftDeleteBook{}) if err := DB.AutoMigrate(&SoftDeleteBook{}); err != nil {
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Wed Feb 01 06:40:55 GMT 2023 - 5.7K bytes - Click Count (0) -
src/test/java/jcifs/netbios/NodeStatusResponseTest.java
@Test void readRDataWireFormat_shouldHandleMultipleNames() throws Exception { // Test with maximum reasonable number of names int numNames = 10; int dataLength = 1 + (18 * numNames) + 6 + 6; byte[] src = new byte[dataLength]; int srcIndex = 0; Field rDataLengthField = NameServicePacket.class.getDeclaredField("rDataLength"); rDataLengthField.setAccessible(true);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 19.3K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/Smb2CancelRequestTest.java
// Given Smb2CancelRequest request = new Smb2CancelRequest(mockConfig, 1L, 0L); // When int size = request.size(); // Then // Size should be aligned to 8 bytes: SMB2_HEADER_LENGTH + 4 bytes for cancel structure int expectedSize = ((Smb2Constants.SMB2_HEADER_LENGTH + 4 + 7) / 8) * 8;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.8K bytes - Click Count (0) -
generics.go
}) } func (c chainG[T]) Delete(ctx context.Context) (rowsAffected int, err error) { r := new(T) res := c.g.apply(ctx).Delete(r) return int(res.RowsAffected), res.Error } func (c chainG[T]) Update(ctx context.Context, name string, value any) (rowsAffected int, err error) { var r T res := c.g.apply(ctx).Model(r).Update(name, value) return int(res.RowsAffected), res.Error }
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Sat Mar 21 11:34:24 GMT 2026 - 26K bytes - Click Count (0) -
internal/s3select/jstream/decoder.go
type ValueType int // Different types of JSON value const ( Unknown ValueType = iota Null String Number Boolean Array Object ) // MetaValue wraps a decoded interface value with the document // position and depth at which the value was parsed type MetaValue struct { Offset int Length int Depth int Value any ValueType ValueType }Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 13.4K bytes - Click Count (0) -
src/main/java/jcifs/internal/dtyp/ACE.java
} @Override public int getAccessMask() { return this.access; } @Override public SID getSID() { return this.sid; } @Override public int decode(final byte[] buf, int bi, final int len) { this.allow = buf[bi] == (byte) 0x00; bi++; this.flags = buf[bi++] & 0xFF; final int size = SMBUtil.readInt2(buf, bi);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 5.6K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/SmbComDeleteDirectoryTest.java
byte[] buffer = new byte[10]; int result = sdd.readParameterWordsWireFormat(buffer, 0); assertEquals(0, result); } /** * Test readBytesWireFormat. */ @Test void testReadBytesWireFormat() { SmbComDeleteDirectory sdd = new SmbComDeleteDirectory("testDir"); byte[] buffer = new byte[10]; int result = sdd.readBytesWireFormat(buffer, 0);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 2.7K bytes - Click Count (0) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/FindBadMultiLangSnippets.java
private static final class Snippet { final int line; // line of the [.multi-language-sample] header final Language lang; // best-effort deduction (UNKNOWN allowed) Snippet(int line, Language lang) { this.line = line; this.lang = lang; } } private static final class Error { final int line; final String message;Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Fri Aug 29 10:12:17 GMT 2025 - 7.2K bytes - Click Count (0) -
guava/src/com/google/common/collect/RegularImmutableTable.java
RegularImmutableTable() {} abstract Cell<R, C, V> getCell(int iterationIndex); @Override final ImmutableSet<Cell<R, C, V>> createCellSet() { return isEmpty() ? ImmutableSet.of() : new CellSet(); } @WeakOuter private final class CellSet extends IndexedImmutableSet<Cell<R, C, V>> { @Override public int size() { return RegularImmutableTable.this.size(); } @Override
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Sep 22 21:07:18 GMT 2025 - 7K bytes - Click Count (0) -
tests/lru_test.go
lru := lru.NewLRU[string, int](10, nil, time.Hour) lru.Add("key1", 1) lru.Add("key1", 2) if value, ok := lru.Get("key1"); !ok || value != 2 { t.Errorf("Expected value to be updated to 2, got %v", value) } } func TestLRU_Add_NewKey_AddsEntry(t *testing.T) { lru := lru.NewLRU[string, int](10, nil, time.Hour) lru.Add("key1", 1)
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Mon Sep 08 09:19:22 GMT 2025 - 10.4K bytes - Click Count (0)