circleci
8 of 8 new or added lines in 4 files covered. (100.0%)
121 existing lines in 22 files now uncovered.1022 of 1029 relevant lines covered (99.32%)
96.65 hits per line
| 1 |
# frozen_string_literal: true
|
|
| 2 |
|
|
| 3 |
class LibraryWebsiteDocument < Document |
3✔ |
| 4 |
def title |
3✔ |
|
UNCOV
5
|
document['title']
|
10✔ |
| 6 |
end
|
|
| 7 |
|
|
| 8 |
def id |
3✔ |
|
UNCOV
9
|
document['nid']
|
10✔ |
| 10 |
end
|
|
| 11 |
|
|
| 12 |
def url |
3✔ |
|
UNCOV
13
|
document['url']
|
10✔ |
| 14 |
end
|
|
| 15 |
|
|
| 16 |
def description |
3✔ |
|
UNCOV
17
|
sanitize document['body']
|
10✔ |
| 18 |
end
|
|
| 19 |
|
|
| 20 |
def type |
3✔ |
|
UNCOV
21
|
document['bundle']
|
10✔ |
| 22 |
end
|
|
| 23 |
|
|
| 24 |
# not implemented for this API
|
|
| 25 |
def creator; end |
3✔ |
| 26 |
# not implemented for this API
|
|
| 27 |
def publisher; end |
3✔ |
| 28 |
|
|
| 29 |
def doc_keys |
3✔ |
|
UNCOV
30
|
[] |
9✔ |
| 31 |
end
|
|
| 32 |
end
|