- Sort Score
- Result 10 results
- Languages All
Results 201 - 210 of 599 for valid3 (0.06 sec)
-
src/test/java/jcifs/ntlmssp/av/AvPairTest.java
import static org.junit.jupiter.api.Assertions.assertNull; import org.junit.jupiter.api.Test; class AvPairTest { @Test void testConstructorAndGetters() { // Test with a valid type and raw data int type = AvPair.MsvAvTimestamp; byte[] raw = new byte[] { 0x01, 0x02, 0x03, 0x04 }; AvPair avPair = new AvPair(type, raw);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3K bytes - Viewed (0) -
src/test/java/jcifs/spnego/NegTokenTargTest.java
} @Test @DisplayName("parsing malformed token throws IOException") void testMalformedToken() { byte[] bad = new byte[] { 0x01, 0x02, 0x03 }; // not a valid ASN.1 tagged object assertThrows(IOException.class, () -> new NegTokenTarg(bad), "Malformed byte[] should cause IOException"); } @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.6K bytes - Viewed (0) -
fastapi/routing.py
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 12:54:56 UTC 2025 - 174.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/MIENameTest.java
import org.junit.jupiter.params.provider.MethodSource; import org.mockito.junit.jupiter.MockitoExtension; @ExtendWith(MockitoExtension.class) class MIENameTest { // Helper to build a valid buffer according to the expected layout. private static byte[] buildBuffer(byte[] oidDer, byte[] nameBytes) { byte[] tokId = new byte[] { 0x04, 0x01 }; int oidLen = oidDer.length;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.6K bytes - Viewed (0) -
tests/test_request_body_parameters_media_type.py
from fastapi import Body, FastAPI from fastapi.testclient import TestClient from pydantic import BaseModel app = FastAPI() media_type = "application/vnd.api+json" # NOTE: These are not valid JSON:API resources # but they are fine for testing requestBody with custom media_type class Product(BaseModel): name: str price: float class Shop(BaseModel): name: str @app.post("/products")
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 21:25:59 UTC 2025 - 6.3K bytes - Viewed (0) -
clause/joins_test.go
Type: clause.LeftJoin, Table: clause.Table{Name: "user"}, ON: clause.Where{ Exprs: []clause.Expression{clause.Eq{clause.Column{Table: "user_info", Name: "user_id"}, clause.PrimaryColumn}}, }, // Valid Expression: clause.Join{ Type: clause.InnerJoin, Table: clause.Table{Name: "user"}, Using: []string{"id"}, }, }, sql: "INNER JOIN `user` USING (`id`)", }, }Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Thu Nov 03 13:03:13 UTC 2022 - 2.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/info/Smb2SetInfoResponseTest.java
assertEquals(0, result); } @Test @DisplayName("Test readBytesWireFormat with valid structure size") void testReadBytesWireFormatValidStructureSize() throws SMBProtocolDecodingException { byte[] buffer = new byte[1024]; int bufferIndex = 0; // Set structure size to 2 (valid) SMBUtil.writeInt2(2, buffer, bufferIndex);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralResponseTest.java
class EdgeCasesTests { @Test @DisplayName("Should handle malformed buffer gracefully") void testReadDataWireFormatMalformedBuffer() { byte[] buffer = new byte[3]; // Too small for valid DFS referral assertThrows(ArrayIndexOutOfBoundsException.class, () -> { response.readDataWireFormat(buffer, 0, buffer.length); }); } @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.4K bytes - Viewed (0) -
tests/test_tutorial/test_encoder/test_tutorial001.py
}, ) assert response.status_code == 422 assert response.json() == { "detail": [ { "loc": ["body", "timestamp"], "msg": "Input should be a valid datetime or date, invalid character in year", "type": "datetime_from_date_parsing", "input": "not a date", "ctx": {"error": "invalid character in year"}, } ]Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 6.7K bytes - Viewed (0) -
tests/test_tutorial/test_path_params_numeric_validations/test_tutorial004.py
assert response.json() == { "detail": [ { "loc": ["path", "item_id"], "input": "invalid_id", "msg": "Input should be a valid integer, unable to parse string as an integer", "type": "int_parsing", } ] } def test_read_items_item_id_less_than_one(client: TestClient):
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 6K bytes - Viewed (0)