Skip to content

Commit 7b1b366

Browse files
committed
ruby: update ruby tests after deleting deprecated test predicates
1 parent bd8ed1d commit 7b1b366

File tree

3 files changed

+0
-126
lines changed

3 files changed

+0
-126
lines changed

ruby/ql/test/library-tests/frameworks/Twirp/Twirp.expected

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,3 @@ sourceTest
33
| hello_world_server.rb:32:18:32:20 | req |
44
ssrfSinkTest
55
| hello_world_client.rb:6:47:6:75 | "http://localhost:8080/twirp" |
6-
serviceInstantiationTest
7-
| hello_world_server.rb:24:11:24:61 | call to new |
8-
| hello_world_server.rb:38:1:38:57 | call to new |

ruby/ql/test/library-tests/frameworks/active_record/ActiveRecord.expected

Lines changed: 0 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -146,87 +146,6 @@ activeRecordSqlExecutionRanges
146146
| ActiveRecord.rb:73:20:73:39 | "username = #{...}" |
147147
| ActiveRecord.rb:85:21:85:44 | ...[...] |
148148
| ActiveRecord.rb:123:27:123:76 | "this is an unsafe annotation:..." |
149-
activeRecordModelClassMethodCalls
150-
| ActiveRecord.rb:2:3:2:17 | call to has_many |
151-
| ActiveRecord.rb:6:3:6:24 | call to belongs_to |
152-
| ActiveRecord.rb:9:5:9:68 | call to find |
153-
| ActiveRecord.rb:13:5:13:40 | call to find_by |
154-
| ActiveRecord.rb:13:5:13:46 | call to users |
155-
| ActiveRecord.rb:36:5:36:25 | call to destroy_by |
156-
| ActiveRecord.rb:45:5:45:45 | call to calculate |
157-
| ActiveRecord.rb:46:5:46:43 | call to delete_by |
158-
| ActiveRecord.rb:47:5:47:46 | call to destroy_by |
159-
| ActiveRecord.rb:48:5:48:35 | call to where |
160-
| ActiveRecord.rb:51:5:51:14 | call to where |
161-
| ActiveRecord.rb:51:5:51:48 | call to not |
162-
| ActiveRecord.rb:53:5:53:30 | call to find_by_name |
163-
| ActiveRecord.rb:54:5:54:36 | call to not_a_find_by_method |
164-
| ActiveRecord.rb:63:5:63:33 | call to delete_by |
165-
| ActiveRecord.rb:69:5:69:29 | call to order |
166-
| ActiveRecord.rb:73:7:73:40 | call to find_by |
167-
| ActiveRecord.rb:77:5:77:33 | call to find_by |
168-
| ActiveRecord.rb:79:5:79:34 | call to find |
169-
| ActiveRecord.rb:89:5:89:24 | call to create |
170-
| ActiveRecord.rb:93:5:93:66 | call to create |
171-
| ActiveRecord.rb:97:5:97:68 | call to create |
172-
| ActiveRecord.rb:101:5:101:16 | call to create |
173-
| ActiveRecord.rb:105:5:105:27 | call to update |
174-
| ActiveRecord.rb:109:5:109:69 | call to update |
175-
| ActiveRecord.rb:113:5:113:71 | call to update |
176-
| ActiveRecord.rb:119:13:119:54 | call to annotate |
177-
| ActiveRecord.rb:123:13:123:77 | call to annotate |
178-
| associations.rb:2:3:2:17 | call to has_many |
179-
| associations.rb:6:3:6:20 | call to belongs_to |
180-
| associations.rb:7:3:7:20 | call to has_many |
181-
| associations.rb:8:3:8:31 | call to has_and_belongs_to_many |
182-
| associations.rb:12:3:12:32 | call to has_and_belongs_to_many |
183-
| associations.rb:16:3:16:18 | call to belongs_to |
184-
| associations.rb:19:11:19:20 | call to new |
185-
| associations.rb:21:9:21:21 | call to posts |
186-
| associations.rb:21:9:21:28 | call to create |
187-
| associations.rb:23:12:23:25 | call to comments |
188-
| associations.rb:23:12:23:32 | call to create |
189-
| associations.rb:25:11:25:22 | call to author |
190-
| associations.rb:27:9:27:21 | call to posts |
191-
| associations.rb:27:9:27:28 | call to create |
192-
| associations.rb:29:1:29:13 | call to posts |
193-
| associations.rb:29:1:29:22 | ... << ... |
194-
| associations.rb:31:1:31:12 | call to author= |
195-
| associations.rb:35:1:35:14 | call to comments |
196-
| associations.rb:35:1:35:21 | call to create |
197-
| associations.rb:35:1:35:28 | call to create |
198-
| associations.rb:37:1:37:13 | call to posts |
199-
| associations.rb:37:1:37:20 | call to reload |
200-
| associations.rb:37:1:37:27 | call to create |
201-
| associations.rb:39:1:39:15 | call to build_tag |
202-
| associations.rb:40:1:40:15 | call to build_tag |
203-
| associations.rb:42:1:42:13 | call to posts |
204-
| associations.rb:42:1:42:25 | call to push |
205-
| associations.rb:43:1:43:13 | call to posts |
206-
| associations.rb:43:1:43:27 | call to concat |
207-
| associations.rb:44:1:44:13 | call to posts |
208-
| associations.rb:44:1:44:19 | call to build |
209-
| associations.rb:45:1:45:13 | call to posts |
210-
| associations.rb:45:1:45:20 | call to create |
211-
| associations.rb:46:1:46:13 | call to posts |
212-
| associations.rb:46:1:46:21 | call to create! |
213-
| associations.rb:47:1:47:13 | call to posts |
214-
| associations.rb:47:1:47:20 | call to delete |
215-
| associations.rb:48:1:48:13 | call to posts |
216-
| associations.rb:48:1:48:24 | call to delete_all |
217-
| associations.rb:49:1:49:13 | call to posts |
218-
| associations.rb:49:1:49:21 | call to destroy |
219-
| associations.rb:50:1:50:13 | call to posts |
220-
| associations.rb:50:1:50:25 | call to destroy_all |
221-
| associations.rb:51:1:51:13 | call to posts |
222-
| associations.rb:51:1:51:22 | call to distinct |
223-
| associations.rb:51:1:51:36 | call to find |
224-
| associations.rb:52:1:52:13 | call to posts |
225-
| associations.rb:52:1:52:19 | call to reset |
226-
| associations.rb:52:1:52:33 | call to find |
227-
| associations.rb:53:1:53:13 | call to posts |
228-
| associations.rb:53:1:53:20 | call to reload |
229-
| associations.rb:53:1:53:34 | call to find |
230149
activeRecordModelClassMethodCallsReplacement
231150
| ActiveRecord.rb:1:1:3:3 | UserGroup | ActiveRecord.rb:2:3:2:17 | call to has_many |
232151
| ActiveRecord.rb:1:1:3:3 | UserGroup | ActiveRecord.rb:13:5:13:40 | call to find_by |
@@ -272,18 +191,6 @@ activeRecordModelClassMethodCallsReplacement
272191
| associations.rb:5:1:9:3 | Post | associations.rb:8:3:8:31 | call to has_and_belongs_to_many |
273192
| associations.rb:11:1:13:3 | Tag | associations.rb:12:3:12:32 | call to has_and_belongs_to_many |
274193
| associations.rb:15:1:17:3 | Comment | associations.rb:16:3:16:18 | call to belongs_to |
275-
potentiallyUnsafeSqlExecutingMethodCall
276-
| ActiveRecord.rb:9:5:9:68 | call to find |
277-
| ActiveRecord.rb:36:5:36:25 | call to destroy_by |
278-
| ActiveRecord.rb:45:5:45:45 | call to calculate |
279-
| ActiveRecord.rb:46:5:46:43 | call to delete_by |
280-
| ActiveRecord.rb:47:5:47:46 | call to destroy_by |
281-
| ActiveRecord.rb:48:5:48:35 | call to where |
282-
| ActiveRecord.rb:51:5:51:48 | call to not |
283-
| ActiveRecord.rb:63:5:63:33 | call to delete_by |
284-
| ActiveRecord.rb:69:5:69:29 | call to order |
285-
| ActiveRecord.rb:73:7:73:40 | call to find_by |
286-
| ActiveRecord.rb:123:13:123:77 | call to annotate |
287194
activeRecordModelInstantiations
288195
| ActiveRecord.rb:9:5:9:68 | call to find | ActiveRecord.rb:5:1:32:3 | User |
289196
| ActiveRecord.rb:13:5:13:40 | call to find_by | ActiveRecord.rb:1:1:3:3 | UserGroup |

ruby/ql/test/library-tests/frameworks/active_resource/ActiveResource.expected

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,6 @@ modelClassMethodCalls
1010
| active_resource.rb:23:10:23:19 | call to all |
1111
| active_resource.rb:24:10:24:26 | call to find |
1212
| active_resource.rb:30:3:30:11 | call to site= |
13-
modelInstances
14-
| active_resource.rb:5:1:5:5 | alice |
15-
| active_resource.rb:5:1:5:33 | ... = ... |
16-
| active_resource.rb:5:9:5:33 | call to new |
17-
| active_resource.rb:6:1:6:5 | alice |
18-
| active_resource.rb:8:1:8:5 | alice |
19-
| active_resource.rb:8:1:8:22 | ... = ... |
20-
| active_resource.rb:8:9:8:22 | call to find |
21-
| active_resource.rb:9:1:9:5 | alice |
22-
| active_resource.rb:10:1:10:5 | alice |
23-
| active_resource.rb:12:1:12:5 | alice |
24-
| active_resource.rb:16:1:16:23 | call to new |
25-
| active_resource.rb:17:1:17:5 | alice |
26-
| active_resource.rb:18:1:18:22 | call to get |
27-
| active_resource.rb:19:1:19:5 | alice |
28-
| active_resource.rb:24:1:24:6 | people |
29-
| active_resource.rb:24:1:24:26 | ... = ... |
30-
| active_resource.rb:24:10:24:26 | call to find |
31-
| active_resource.rb:26:1:26:5 | alice |
32-
| active_resource.rb:26:1:26:20 | ... = ... |
33-
| active_resource.rb:26:9:26:14 | people |
34-
| active_resource.rb:26:9:26:20 | call to first |
35-
| active_resource.rb:27:1:27:5 | alice |
3613
modelInstancesAsSource
3714
| active_resource.rb:1:1:3:3 | Person | active_resource.rb:5:9:5:33 | call to new |
3815
| active_resource.rb:1:1:3:3 | Person | active_resource.rb:8:9:8:22 | call to find |
@@ -50,13 +27,6 @@ modelInstanceMethodCalls
5027
| active_resource.rb:19:1:19:19 | call to delete |
5128
| active_resource.rb:26:9:26:20 | call to first |
5229
| active_resource.rb:27:1:27:10 | call to save |
53-
collections
54-
| active_resource.rb:23:1:23:19 | ... = ... |
55-
| active_resource.rb:23:10:23:19 | call to all |
56-
| active_resource.rb:24:1:24:6 | people |
57-
| active_resource.rb:24:1:24:26 | ... = ... |
58-
| active_resource.rb:24:10:24:26 | call to find |
59-
| active_resource.rb:26:9:26:14 | people |
6030
collectionSources
6131
| active_resource.rb:23:10:23:19 | call to all |
6232
| active_resource.rb:24:10:24:26 | call to find |

0 commit comments

Comments
 (0)