github
0 of 2 new or added lines in 1 file covered. (0.0%)
1444 existing lines in 98 files now uncovered.2650 of 6192 relevant lines covered (42.8%)
0.72 hits per line
1 |
class Api::V1::ArticleCategoriesController < Api::V1::BaseController |
1✔ |
2 |
include Concerns::CollectionScope |
1✔ |
3 |
|
|
4 |
def index |
1✔ |
UNCOV
5
|
render json: search_scope
|
× |
6 |
end
|
|
7 |
|
|
8 |
def show |
1✔ |
UNCOV
9
|
render json: scope.find(params.require(:id)) |
× |
10 |
end
|
|
11 |
|
|
12 |
private |
1✔ |
13 |
|
|
14 |
def max_per_page |
1✔ |
15 |
nil
|
|
16 |
end
|
|
17 |
|
|
18 |
def default_per_page |
1✔ |
19 |
nil
|
|
20 |
end
|
|
21 |
|
|
22 |
def scope |
1✔ |
UNCOV
23
|
ArticleCategory.all
|
× |
24 |
end
|
|
25 |
end
|