circleci
1 of 5 new or added lines in 2 files covered. (20.0%)
580 existing lines in 35 files now uncovered.2898 of 3173 relevant lines covered (91.33%)
570.28 hits per line
| 1 |
# frozen_string_literal: true
|
|
|
UNCOV
2
|
module Mediaflux |
3✔ |
|
UNCOV
3
|
class StringReverse < Request |
3✔ |
| 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:) |
3✔ |
|
UNCOV
10
|
super(session_token: session_token) |
66✔ |
|
UNCOV
11
|
@string = string
|
66✔ |
|
UNCOV
12
|
end
|
|
| 13 |
|
|
| 14 |
# Specifies the Mediaflux service to use when querying Mediaflux.
|
|
| 15 |
# @return [String]
|
|
|
UNCOV
16
|
def self.service |
3✔ |
|
UNCOV
17
|
"tigerdata.trivial"
|
132✔ |
|
UNCOV
18
|
end
|
|
| 19 |
|
|
|
UNCOV
20
|
private |
3✔ |
| 21 |
|
|
|
UNCOV
22
|
def build_http_request_body(name:) |
3✔ |
|
UNCOV
23
|
super do |xml| |
132✔ |
|
UNCOV
24
|
xml.args do
|
132✔ |
|
UNCOV
25
|
xml.string @string
|
132✔ |
|
UNCOV
26
|
end
|
|
|
UNCOV
27
|
end
|
|
|
UNCOV
28
|
end
|
|
|
UNCOV
29
|
end
|
|
|
UNCOV
30
|
end
|