push
circleci
4 of 28 new or added lines in 1 file covered. (14.29%)
4051 existing lines in 107 files now uncovered.3229 of 3557 relevant lines covered (90.78%)
913.12 hits per line
| 1 |
# frozen_string_literal: true
|
|
| 2 |
|
|
|
UNCOV
3
|
class LibrariesController < ApplicationController |
1✔ |
|
UNCOV
4
|
before_action :set_library, only: %i[show] |
1✔ |
| 5 |
|
|
| 6 |
# GET /libraries
|
|
|
UNCOV
7
|
def index |
1✔ |
|
UNCOV
8
|
@libraries = Library.all.order(:order, :label) |
6✔ |
|
UNCOV
9
|
end
|
|
| 10 |
|
|
| 11 |
# GET /libraries/1
|
|
|
UNCOV
12
|
def show; end |
1✔ |
| 13 |
|
|
|
UNCOV
14
|
private |
1✔ |
| 15 |
|
|
| 16 |
# Use callbacks to share common setup or constraints between actions.
|
|
|
UNCOV
17
|
def set_library |
1✔ |
| 18 |
# nosemgrep
|
|
|
UNCOV
19
|
@library = Library.friendly.find(params[:id]) |
6✔ |
|
UNCOV
20
|
end
|
|
|
UNCOV
21
|
end
|