- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 111 for Eq (0.01 sec)
-
clause/benchmarks_test.go
stmt := gorm.Statement{DB: db, Table: user.Table, Schema: user, Clauses: map[string]clause.Clause{}} clauses := []clause.Interface{clause.Select{}, clause.From{}, clause.Where{Exprs: []clause.Expression{clause.Eq{Column: clause.PrimaryColumn, Value: "1"}, clause.Gt{Column: "age", Value: 18}, clause.Or(clause.Neq{Column: "name", Value: "jinzhu"})}}} for _, clause := range clauses { stmt.AddClause(clause) }
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Fri Oct 07 12:14:14 UTC 2022 - 1.9K bytes - Viewed (0) -
cmd/post-policy_test.go
policy: `{"expiration": "%s","conditions":[["eq", "$bucket", "` + bucketName + `"], ["starts-with", "$key", "test/"], ["eq", "$x-amz-algorithm", "AWS4-HMAC-SHA256"], ["eq", "$x-amz-date", "%s"], ["eq", "$x-amz-credential", "` + credentials.AccessKey + `/%s/us-east-1/s3/aws4_request"],["eq", "$x-amz-meta-uuid", "1234"],["eq", "$content-encoding", "gzip"]]}`, }, // Success case, no multipart filename. {
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 30.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/Kerb5ContextTest.java
byte[] mic = new byte[] { 3 }; // No exception means success doNothing().when(gssContext).verifyMIC(eq(mic), eq(0), eq(1), eq(data), eq(0), eq(2), any()); assertDoesNotThrow(() -> ctx.verifyMIC(data, mic)); verify(gssContext, times(1)).verifyMIC(eq(mic), eq(0), eq(1), eq(data), eq(0), eq(2), any()); } @Test @DisplayName("verifyMIC wraps GSSException into CIFSException")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 14.2K bytes - Viewed (0) -
clause/joins_test.go
Exprs: []clause.Expression{clause.Eq{clause.Column{Table: "user_info", Name: "user_id"}, clause.PrimaryColumn}}, }, }, sql: "LEFT JOIN `user` ON `user_info`.`user_id` = `users`.`id`", }, { name: "RIGHT JOIN", join: clause.Join{ Type: clause.RightJoin, Table: clause.Table{Name: "user"}, ON: clause.Where{
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Thu Nov 03 13:03:13 UTC 2022 - 2.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/SIDTest.java
jcifs.SID member = new SID("S-1-5-21-1000"); jcifs.SID[] expected = new jcifs.SID[] { member }; when(mockResolver.getGroupMemberSids(eq(mockCtx), eq("srv"), any(jcifs.SID.class), eq(512), eq(123))).thenReturn(expected); // Act jcifs.SID[] res = group.getGroupMemberSids("srv", mockCtx, 123); // Assert
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeHandleInternalTest.java
when(pipe.ensureTreeConnected()).thenReturn(tree); when(tree.acquire()).thenReturn(tree); when(tree.isSMB2()).thenReturn(true); when(pipe.openUnshared(eq("\\\\pipe\\\\foo"), eq(0), anyInt(), anyInt(), eq(SmbConstants.ATTR_NORMAL), eq(0))).thenReturn(fh); when(fh.acquire()).thenReturn(fh); when(fh.isValid()).thenReturn(true); // Act SmbFileHandleImpl opened = handle.ensureOpen();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 16.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeInternalTest.java
} @Test @DisplayName("send with multiple params returns the stubbed response") void send_withParams_returnsResponse() throws Exception { // Arrange when(tree.send(eq(request), eq(RequestParam.NO_TIMEOUT), eq(RequestParam.NO_RETRY))).thenReturn(response); // Act CommonServerMessageBlockResponse out = tree.send(request, RequestParam.NO_TIMEOUT, RequestParam.NO_RETRY); // Assert
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbCopyUtilTest.java
SmbFileHandleImpl sfd = mock(SmbFileHandleImpl.class); when(sfd.getInitialSize()).thenReturn(0L); when(src.openUnshared(eq(0), eq(SmbConstants.O_RDONLY), eq(SmbConstants.FILE_SHARE_READ), eq(SmbConstants.ATTR_NORMAL), eq(0))) .thenReturn(sfd); // openCopyTargetFile should be called by serverSideCopy, so dest.openUnshared must succeed
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbRandomAccessFileTest.java
doNothing().when(raf).write(any(byte[].class), anyInt(), anyInt()); raf.writeBytes("hi"); raf.writeChars("yo"); verify(raf).write(any(byte[].class), eq(0), eq(2)); // bytes verify(raf).write(any(byte[].class), eq(0), eq(4)); // chars } @Test @DisplayName("writeUTF(): prefixes size and writes encoded bytes") void writeUTF_encodesAndPrefixes() throws Exception {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0) -
src/test/java/jcifs/pac/kerberos/KerberosRelevantAuthDataTest.java
// Must use matchers for all arguments when using any matcher mockedStaticAuthData.when(() -> KerberosAuthData.parse(eq(1), eq(new byte[] { 0x01 }), any(Map.class))) .thenReturn(Collections.singletonList(mockAuthData1)); mockedStaticAuthData.when(() -> KerberosAuthData.parse(eq(2), eq(new byte[] { 0x02 }), any(Map.class))) .thenReturn(Collections.singletonList(mockAuthData2));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9K bytes - Viewed (0)