(
self,
orig, # type: pycbc_result
)
| 255 | class PingResult(Result): |
| 256 | |
| 257 | def __init__( |
| 258 | self, |
| 259 | orig, # type: pycbc_result |
| 260 | ): |
| 261 | super().__init__(orig) |
| 262 | svc_endpoints = self._orig.raw_result.get('services', None) |
| 263 | self._endpoints = {} |
| 264 | if svc_endpoints: |
| 265 | for service, endpoints in svc_endpoints.items(): |
| 266 | service_type = ServiceType(service) |
| 267 | self._endpoints[service_type] = [] |
| 268 | for endpoint in endpoints: |
| 269 | self._endpoints[service_type].append( |
| 270 | EndpointPingReport(service_type, endpoint)) |
| 271 | |
| 272 | @property |
| 273 | def id(self) -> str: |
nothing calls this directly
no test coverage detected