- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 49 for tiny (0.09 seconds)
-
src/test/java/jcifs/internal/smb2/session/Smb2LogoffRequestTest.java
void writeBytesWireFormat_throwsIfInsufficientSpace() { // Arrange Smb2LogoffRequest req = newRequest(); byte[] tiny = new byte[3]; // less than 4 bytes available // Act/Assert assertThrows(ArrayIndexOutOfBoundsException.class, () -> req.writeBytesWireFormat(tiny, 0)); } @Test @DisplayName("writeBytesWireFormat throws with negative index")
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.4K bytes - Click Count (0) -
internal/http/check_port_others.go
"net" "time" ) // CheckPortAvailability - check if given host and port is already in use. // Note: The check method tries to listen on given port and closes it. // It is possible to have a disconnected client in this tiny window of time. func CheckPortAvailability(host, port string, opts TCPOptions) (err error) { lc := &net.ListenConfig{} ctx, cancel := context.WithTimeout(context.Background(), time.Second) defer cancel()
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Wed May 03 21:12:25 GMT 2023 - 1.5K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/com/SmbComFindClose2Test.java
import org.mockito.Mock; import org.mockito.junit.jupiter.MockitoExtension; import jcifs.Configuration; /** * Unit tests for {@link SmbComFindClose2}. * The class is intentionally tiny – the tests mainly verify that the * parameter word (the session identifier) is written in little‑endian form * and that the {@code toString} helper contains the expected values. *Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 3.1K bytes - Click Count (0) -
benchmarks/src/main/java/org/elasticsearch/benchmark/search/fetch/subphase/FetchSourcePhaseBenchmark.java
private FilterPath[] excludesFilters; @Param({ "tiny", "short", "one_4k_field", "one_4m_field" }) private String source; @Param({ "message" }) private String includes; @Param({ "" }) private String excludes; @Setup public void setup() throws IOException { switch (source) { case "tiny": sourceBytes = new BytesArray("{\"message\": \"short\"}");
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Mon Sep 13 17:34:14 GMT 2021 - 5.4K bytes - Click Count (0) -
.teamcity/src/main/kotlin/model/BucketExtensions.kt
* @param largeElementSplitFunction the function used to further split the large element into smaller pieces * @param smallElementAggregateFunction the function used to aggregate tiny elements into a large bucket * @param expectedBucketNumber the return value's size should be expectedBucketNumber */ fun <T, R> splitIntoBuckets( list: LinkedList<T>, toIntFunction: (T) -> Int,
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Wed Feb 12 09:12:03 GMT 2025 - 5.7K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/WinErrorTest.java
import org.mockito.Mockito; /** * Tests for {@link WinError} interface constants and static arrays. * The interface has no instance methods, so the tests focus on * value correctness and array integrity. A tiny Mockito example * demonstrates that the interface can be mocked if another class * depends on it. */ public class WinErrorTest { @Nested @DisplayName("Constant value checks") class ConstantValues {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) -
internal/http/check_port_linux.go
"syscall" "time" ) // CheckPortAvailability - check if given host and port is already in use. // Note: The check method tries to listen on given port and closes it. // It is possible to have a disconnected client in this tiny window of time. func CheckPortAvailability(host, port string, opts TCPOptions) (err error) { lc := &net.ListenConfig{ Control: func(network, address string, c syscall.RawConn) error { c.Control(func(fdPtr uintptr) {
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Wed May 03 21:12:25 GMT 2023 - 1.9K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/InfoTest.java
import org.junit.jupiter.api.Test; import org.mockito.Mock; /** * Unit tests for the {@link Info} implementations used by the SMB1 * protocol handling code. */ class InfoTest { // A tiny mock to illustrate Mockito interaction patterns. @Mock private SmbComTransactionResponse transactionMock; @BeforeEach void setUp() { transactionMock = mock(SmbComTransactionResponse.class);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4.5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/FileBackedOutputStreamTest.java
import java.nio.file.attribute.PosixFileAttributeView; import java.nio.file.attribute.PosixFileAttributes; import org.jspecify.annotations.NullUnmarked; /** * Unit tests for {@link FileBackedOutputStream}. * * <p>For a tiny bit more testing, see {@link FileBackedOutputStreamAndroidIncompatibleTest}. * * @author Chris Nokleberg */ @NullUnmarked public class FileBackedOutputStreamTest extends IoTestCase {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 03 04:04:26 GMT 2026 - 8K bytes - Click Count (0) -
build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild/testcleanup/TestFilesCleanupService.kt
zip(destFile, it) } // Zip all files in project build directory into a single zip file to avoid publishing too many tiny files reports.filter { it.isFile && it.toPath().startsWith(projectBuildDirPath) } .map { projectBuildDirPath.relativize(it.toPath()).toString() to it }
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Wed Feb 11 11:05:07 GMT 2026 - 14.3K bytes - Click Count (1)