travis-ci
59 of 59 new or added lines in 12 files covered. (100.0%)
793 of 1481 relevant lines covered (53.54%)
109.07 hits per line
1 |
module David::ETSI::Mandatory |
5✔ |
2 |
class Grape < ::Grape::API |
5✔ |
3 |
content_type :txt, 'text/plain' |
5✔ |
4 |
default_format :txt
|
5✔ |
5 |
|
|
6 |
get :test do |
5✔ |
7 |
# Grape calls #to_i on status and resets headers on 205.
|
|
8 |
status 200
|
× |
9 |
nil
|
× |
10 |
end
|
|
11 |
|
|
12 |
post :test do |
5✔ |
13 |
status 201
|
× |
14 |
nil
|
× |
15 |
end
|
|
16 |
|
|
17 |
put :test do |
5✔ |
18 |
status 204
|
× |
19 |
nil
|
× |
20 |
end
|
|
21 |
|
|
22 |
delete :test do |
5✔ |
23 |
status 202
|
× |
24 |
nil
|
× |
25 |
end
|
|
26 |
|
|
27 |
get 'seg1/seg2/seg3' do |
5✔ |
28 |
status 200
|
× |
29 |
nil
|
× |
30 |
end
|
|
31 |
|
|
32 |
get 'query' do |
5✔ |
33 |
status 200
|
× |
34 |
nil
|
× |
35 |
end
|
|
36 |
end
|
|
37 |
end
|