Skip to content

Commit b1fd321

Browse files
committed
Ruby: update Rails framework test output for existing tests
1 parent 283a48c commit b1fd321

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ actionControllerControllerClasses
77
| app/controllers/photos_controller.rb:1:1:4:3 | PhotosController |
88
| app/controllers/posts_controller.rb:1:1:10:3 | PostsController |
99
| app/controllers/users/notifications_controller.rb:2:3:5:5 | NotificationsController |
10+
| app/controllers/users/users_controller.rb:2:3:33:5 | UsersController |
1011
actionControllerActionMethods
1112
| ActiveRecordInjection.rb:32:3:57:5 | some_request_handler |
1213
| ActiveRecordInjection.rb:61:3:69:5 | some_other_request_handler |
@@ -22,6 +23,8 @@ actionControllerActionMethods
2223
| app/controllers/posts_controller.rb:5:3:6:5 | show |
2324
| app/controllers/posts_controller.rb:8:3:9:5 | upvote |
2425
| app/controllers/users/notifications_controller.rb:3:5:4:7 | mark_as_read |
26+
| app/controllers/users/users_controller.rb:3:5:28:7 | create_or_modify |
27+
| app/controllers/users/users_controller.rb:30:5:32:7 | get_uid |
2528
paramsCalls
2629
| ActiveRecordInjection.rb:35:30:35:35 | call to params |
2730
| ActiveRecordInjection.rb:39:29:39:34 | call to params |

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

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ activeRecordModelClasses
22
| ActiveRecordInjection.rb:1:1:3:3 | UserGroup |
33
| ActiveRecordInjection.rb:5:1:17:3 | User |
44
| ActiveRecordInjection.rb:19:1:25:3 | Admin |
5+
| app/models/application_record.rb:1:1:3:3 | ApplicationRecord |
6+
| app/models/user.rb:1:1:2:3 | User |
57
activeRecordSqlExecutionRanges
68
| ActiveRecordInjection.rb:10:33:10:67 | "name='#{...}' and pass='#{...}'" |
79
| ActiveRecordInjection.rb:23:16:23:24 | condition |
@@ -33,6 +35,18 @@ activeRecordModelClassMethodCalls
3335
| ActiveRecordInjection.rb:85:5:85:33 | call to find_by |
3436
| ActiveRecordInjection.rb:88:5:88:34 | call to find |
3537
| ActiveRecordInjection.rb:94:5:94:45 | call to delete_by |
38+
| app/controllers/users/users_controller.rb:5:7:5:44 | call to create! |
39+
| app/controllers/users/users_controller.rb:6:7:6:29 | call to create |
40+
| app/controllers/users/users_controller.rb:7:7:7:31 | call to insert |
41+
| app/controllers/users/users_controller.rb:10:7:10:32 | call to update |
42+
| app/controllers/users/users_controller.rb:11:7:11:73 | call to update! |
43+
| app/controllers/users/users_controller.rb:14:7:14:66 | call to insert_all |
44+
| app/controllers/users/users_controller.rb:16:14:16:25 | call to find |
45+
| app/controllers/users/users_controller.rb:31:7:31:15 | call to last |
46+
| app/controllers/users/users_controller.rb:31:7:31:18 | call to id |
47+
| app/controllers/users/users_controller.rb:31:7:31:22 | ... + ... |
48+
| app/models/application_record.rb:2:3:2:21 | call to abstract_class |
49+
| app/models/application_record.rb:2:3:2:21 | call to abstract_class= |
3650
potentiallyUnsafeSqlExecutingMethodCall
3751
| ActiveRecordInjection.rb:10:5:10:68 | call to find |
3852
| ActiveRecordInjection.rb:23:5:23:25 | call to destroy_by |
@@ -49,5 +63,12 @@ activeRecordModelInstantiations
4963
| ActiveRecordInjection.rb:15:5:15:40 | call to find_by | ActiveRecordInjection.rb:1:1:3:3 | UserGroup |
5064
| ActiveRecordInjection.rb:23:5:23:25 | self | ActiveRecordInjection.rb:19:1:25:3 | Admin |
5165
| ActiveRecordInjection.rb:80:7:80:40 | call to find_by | ActiveRecordInjection.rb:5:1:17:3 | User |
66+
| ActiveRecordInjection.rb:80:7:80:40 | call to find_by | app/models/user.rb:1:1:2:3 | User |
5267
| ActiveRecordInjection.rb:85:5:85:33 | call to find_by | ActiveRecordInjection.rb:5:1:17:3 | User |
68+
| ActiveRecordInjection.rb:85:5:85:33 | call to find_by | app/models/user.rb:1:1:2:3 | User |
5369
| ActiveRecordInjection.rb:88:5:88:34 | call to find | ActiveRecordInjection.rb:5:1:17:3 | User |
70+
| ActiveRecordInjection.rb:88:5:88:34 | call to find | app/models/user.rb:1:1:2:3 | User |
71+
| app/controllers/users/users_controller.rb:16:14:16:25 | call to find | ActiveRecordInjection.rb:5:1:17:3 | User |
72+
| app/controllers/users/users_controller.rb:16:14:16:25 | call to find | app/models/user.rb:1:1:2:3 | User |
73+
| app/controllers/users/users_controller.rb:31:7:31:15 | call to last | ActiveRecordInjection.rb:5:1:17:3 | User |
74+
| app/controllers/users/users_controller.rb:31:7:31:15 | call to last | app/models/user.rb:1:1:2:3 | User |

0 commit comments

Comments
 (0)