circleci
1 of 2 new or added lines in 1 file covered. (50.0%)
1757 existing lines in 75 files now uncovered.2856 of 3129 relevant lines covered (91.28%)
547.78 hits per line
| 1 |
# frozen_string_literal: true
|
|
|
UNCOV
2
|
module Mediaflux |
2✔ |
|
UNCOV
3
|
class StringReverse < Request |
2✔ |
| 4 |
# This is only here to prove that we can use a mediaflux service that is provided by
|
|
| 5 |
# a java plugin.
|
|
| 6 |
|
|
| 7 |
# Constructor
|
|
| 8 |
# @param session_token [String] the API token for the authenticated session
|
|
|
UNCOV
9
|
def initialize(string:, session_token:) |
2✔ |
|
UNCOV
10
|
super(session_token: session_token) |
1✔ |
|
UNCOV
11
|
@string = string
|
1✔ |
|
UNCOV
12
|
end
|
|
| 13 |
|
|
| 14 |
# Specifies the Mediaflux service to use when querying Mediaflux.
|
|
| 15 |
# @return [String]
|
|
|
UNCOV
16
|
def self.service |
2✔ |
|
UNCOV
17
|
"tigerdata.trivial"
|
2✔ |
|
UNCOV
18
|
end
|
|
| 19 |
|
|
|
UNCOV
20
|
private |
2✔ |
| 21 |
|
|
|
UNCOV
22
|
def build_http_request_body(name:) |
2✔ |
|
UNCOV
23
|
super do |xml| |
2✔ |
|
UNCOV
24
|
xml.args do
|
2✔ |
|
UNCOV
25
|
xml.string @string
|
2✔ |
|
UNCOV
26
|
end
|
|
|
UNCOV
27
|
end
|
|
|
UNCOV
28
|
end
|
|
|
UNCOV
29
|
end
|
|
|
UNCOV
30
|
end
|