Skip to content

Commit 831f722

Browse files
committed
Ruby: Make room for new test
1 parent 58b628b commit 831f722

File tree

2 files changed

+50
-48
lines changed

2 files changed

+50
-48
lines changed

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

Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -40,56 +40,56 @@ activeRecordInstances
4040
| associations.rb:29:1:29:7 | author2 |
4141
| associations.rb:29:1:29:13 | call to posts |
4242
| associations.rb:29:18:29:22 | post2 |
43-
| associations.rb:33:1:33:5 | post2 |
44-
| associations.rb:33:1:33:14 | call to comments |
45-
| associations.rb:33:1:33:21 | call to create |
46-
| associations.rb:35:1:35:7 | author1 |
47-
| associations.rb:35:1:35:13 | call to posts |
48-
| associations.rb:35:1:35:20 | call to reload |
49-
| associations.rb:35:1:35:27 | call to create |
50-
| associations.rb:37:1:37:5 | post1 |
51-
| associations.rb:38:1:38:5 | post1 |
52-
| associations.rb:40:1:40:7 | author1 |
53-
| associations.rb:40:1:40:13 | call to posts |
54-
| associations.rb:40:1:40:25 | call to push |
55-
| associations.rb:40:20:40:24 | post2 |
56-
| associations.rb:41:1:41:7 | author1 |
57-
| associations.rb:41:1:41:13 | call to posts |
58-
| associations.rb:41:1:41:27 | call to concat |
59-
| associations.rb:41:22:41:26 | post2 |
43+
| associations.rb:35:1:35:5 | post2 |
44+
| associations.rb:35:1:35:14 | call to comments |
45+
| associations.rb:35:1:35:21 | call to create |
46+
| associations.rb:37:1:37:7 | author1 |
47+
| associations.rb:37:1:37:13 | call to posts |
48+
| associations.rb:37:1:37:20 | call to reload |
49+
| associations.rb:37:1:37:27 | call to create |
50+
| associations.rb:39:1:39:5 | post1 |
51+
| associations.rb:40:1:40:5 | post1 |
6052
| associations.rb:42:1:42:7 | author1 |
6153
| associations.rb:42:1:42:13 | call to posts |
62-
| associations.rb:42:1:42:19 | call to build |
54+
| associations.rb:42:1:42:25 | call to push |
55+
| associations.rb:42:20:42:24 | post2 |
6356
| associations.rb:43:1:43:7 | author1 |
6457
| associations.rb:43:1:43:13 | call to posts |
65-
| associations.rb:43:1:43:20 | call to create |
58+
| associations.rb:43:1:43:27 | call to concat |
59+
| associations.rb:43:22:43:26 | post2 |
6660
| associations.rb:44:1:44:7 | author1 |
6761
| associations.rb:44:1:44:13 | call to posts |
68-
| associations.rb:44:1:44:21 | call to create! |
62+
| associations.rb:44:1:44:19 | call to build |
6963
| associations.rb:45:1:45:7 | author1 |
7064
| associations.rb:45:1:45:13 | call to posts |
71-
| associations.rb:45:1:45:20 | call to delete |
65+
| associations.rb:45:1:45:20 | call to create |
7266
| associations.rb:46:1:46:7 | author1 |
7367
| associations.rb:46:1:46:13 | call to posts |
74-
| associations.rb:46:1:46:24 | call to delete_all |
68+
| associations.rb:46:1:46:21 | call to create! |
7569
| associations.rb:47:1:47:7 | author1 |
7670
| associations.rb:47:1:47:13 | call to posts |
77-
| associations.rb:47:1:47:21 | call to destroy |
71+
| associations.rb:47:1:47:20 | call to delete |
7872
| associations.rb:48:1:48:7 | author1 |
7973
| associations.rb:48:1:48:13 | call to posts |
80-
| associations.rb:48:1:48:25 | call to destroy_all |
74+
| associations.rb:48:1:48:24 | call to delete_all |
8175
| associations.rb:49:1:49:7 | author1 |
8276
| associations.rb:49:1:49:13 | call to posts |
83-
| associations.rb:49:1:49:22 | call to distinct |
84-
| associations.rb:49:1:49:36 | call to find |
77+
| associations.rb:49:1:49:21 | call to destroy |
8578
| associations.rb:50:1:50:7 | author1 |
8679
| associations.rb:50:1:50:13 | call to posts |
87-
| associations.rb:50:1:50:19 | call to reset |
88-
| associations.rb:50:1:50:33 | call to find |
80+
| associations.rb:50:1:50:25 | call to destroy_all |
8981
| associations.rb:51:1:51:7 | author1 |
9082
| associations.rb:51:1:51:13 | call to posts |
91-
| associations.rb:51:1:51:20 | call to reload |
92-
| associations.rb:51:1:51:34 | call to find |
83+
| associations.rb:51:1:51:22 | call to distinct |
84+
| associations.rb:51:1:51:36 | call to find |
85+
| associations.rb:52:1:52:7 | author1 |
86+
| associations.rb:52:1:52:13 | call to posts |
87+
| associations.rb:52:1:52:19 | call to reset |
88+
| associations.rb:52:1:52:33 | call to find |
89+
| associations.rb:53:1:53:7 | author1 |
90+
| associations.rb:53:1:53:13 | call to posts |
91+
| associations.rb:53:1:53:20 | call to reload |
92+
| associations.rb:53:1:53:34 | call to find |
9393
activeRecordSqlExecutionRanges
9494
| ActiveRecord.rb:9:33:9:67 | "name='#{...}' and pass='#{...}'" |
9595
| ActiveRecord.rb:19:16:19:24 | condition |
@@ -168,34 +168,34 @@ activeRecordModelInstantiations
168168
| associations.rb:27:9:27:21 | call to posts | associations.rb:5:1:9:3 | Post |
169169
| associations.rb:27:9:27:28 | call to create | associations.rb:5:1:9:3 | Post |
170170
| associations.rb:29:1:29:13 | call to posts | associations.rb:5:1:9:3 | Post |
171-
| associations.rb:33:1:33:14 | call to comments | associations.rb:15:1:17:3 | Comment |
172-
| associations.rb:33:1:33:21 | call to create | associations.rb:15:1:17:3 | Comment |
173-
| associations.rb:35:1:35:13 | call to posts | associations.rb:5:1:9:3 | Post |
174-
| associations.rb:35:1:35:20 | call to reload | associations.rb:5:1:9:3 | Post |
175-
| associations.rb:40:1:40:13 | call to posts | associations.rb:5:1:9:3 | Post |
176-
| associations.rb:40:1:40:25 | call to push | associations.rb:5:1:9:3 | Post |
177-
| associations.rb:41:1:41:13 | call to posts | associations.rb:5:1:9:3 | Post |
178-
| associations.rb:41:1:41:27 | call to concat | associations.rb:5:1:9:3 | Post |
171+
| associations.rb:35:1:35:14 | call to comments | associations.rb:15:1:17:3 | Comment |
172+
| associations.rb:35:1:35:21 | call to create | associations.rb:15:1:17:3 | Comment |
173+
| associations.rb:37:1:37:13 | call to posts | associations.rb:5:1:9:3 | Post |
174+
| associations.rb:37:1:37:20 | call to reload | associations.rb:5:1:9:3 | Post |
179175
| associations.rb:42:1:42:13 | call to posts | associations.rb:5:1:9:3 | Post |
180-
| associations.rb:42:1:42:19 | call to build | associations.rb:5:1:9:3 | Post |
176+
| associations.rb:42:1:42:25 | call to push | associations.rb:5:1:9:3 | Post |
181177
| associations.rb:43:1:43:13 | call to posts | associations.rb:5:1:9:3 | Post |
182-
| associations.rb:43:1:43:20 | call to create | associations.rb:5:1:9:3 | Post |
178+
| associations.rb:43:1:43:27 | call to concat | associations.rb:5:1:9:3 | Post |
183179
| associations.rb:44:1:44:13 | call to posts | associations.rb:5:1:9:3 | Post |
184-
| associations.rb:44:1:44:21 | call to create! | associations.rb:5:1:9:3 | Post |
180+
| associations.rb:44:1:44:19 | call to build | associations.rb:5:1:9:3 | Post |
185181
| associations.rb:45:1:45:13 | call to posts | associations.rb:5:1:9:3 | Post |
186-
| associations.rb:45:1:45:20 | call to delete | associations.rb:5:1:9:3 | Post |
182+
| associations.rb:45:1:45:20 | call to create | associations.rb:5:1:9:3 | Post |
187183
| associations.rb:46:1:46:13 | call to posts | associations.rb:5:1:9:3 | Post |
188-
| associations.rb:46:1:46:24 | call to delete_all | associations.rb:5:1:9:3 | Post |
184+
| associations.rb:46:1:46:21 | call to create! | associations.rb:5:1:9:3 | Post |
189185
| associations.rb:47:1:47:13 | call to posts | associations.rb:5:1:9:3 | Post |
190-
| associations.rb:47:1:47:21 | call to destroy | associations.rb:5:1:9:3 | Post |
186+
| associations.rb:47:1:47:20 | call to delete | associations.rb:5:1:9:3 | Post |
191187
| associations.rb:48:1:48:13 | call to posts | associations.rb:5:1:9:3 | Post |
192-
| associations.rb:48:1:48:25 | call to destroy_all | associations.rb:5:1:9:3 | Post |
188+
| associations.rb:48:1:48:24 | call to delete_all | associations.rb:5:1:9:3 | Post |
193189
| associations.rb:49:1:49:13 | call to posts | associations.rb:5:1:9:3 | Post |
194-
| associations.rb:49:1:49:22 | call to distinct | associations.rb:5:1:9:3 | Post |
190+
| associations.rb:49:1:49:21 | call to destroy | associations.rb:5:1:9:3 | Post |
195191
| associations.rb:50:1:50:13 | call to posts | associations.rb:5:1:9:3 | Post |
196-
| associations.rb:50:1:50:19 | call to reset | associations.rb:5:1:9:3 | Post |
192+
| associations.rb:50:1:50:25 | call to destroy_all | associations.rb:5:1:9:3 | Post |
197193
| associations.rb:51:1:51:13 | call to posts | associations.rb:5:1:9:3 | Post |
198-
| associations.rb:51:1:51:20 | call to reload | associations.rb:5:1:9:3 | Post |
194+
| associations.rb:51:1:51:22 | call to distinct | associations.rb:5:1:9:3 | Post |
195+
| associations.rb:52:1:52:13 | call to posts | associations.rb:5:1:9:3 | Post |
196+
| associations.rb:52:1:52:19 | call to reset | associations.rb:5:1:9:3 | Post |
197+
| associations.rb:53:1:53:13 | call to posts | associations.rb:5:1:9:3 | Post |
198+
| associations.rb:53:1:53:20 | call to reload | associations.rb:5:1:9:3 | Post |
199199
persistentWriteAccesses
200200
| ActiveRecord.rb:72:5:72:24 | call to create | ActiveRecord.rb:72:18:72:23 | call to params |
201201
| ActiveRecord.rb:76:5:76:66 | call to create | ActiveRecord.rb:76:24:76:36 | ...[...] |

ruby/ql/test/library-tests/frameworks/active_record/associations.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ class Comment < ActiveRecord::Base
2828

2929
author2.posts << post2
3030

31+
32+
3133
# The final method call in this chain should not be recognised as an
3234
# instantiation.
3335
post2.comments.create.create

0 commit comments

Comments
 (0)