MCPcopy Create free account
hub / github.com/FastLED/FastLED / record_failure

Method record_failure

examples/Asio/Server/test_stress.py:67–76  ·  view source on GitHub ↗
(self, error_type: str)

Source from the content-addressed store, hash-verified

65 self.response_times.append(response_time_ms)
66
67 def record_failure(self, error_type: str):
68 with self.lock:
69 self.total_requests += 1
70 self.failed_requests += 1
71 if error_type == "connection":
72 self.connection_errors += 1
73 elif error_type == "timeout":
74 self.timeout_errors += 1
75 else:
76 self.other_errors += 1
77
78
79def start_server(config: StressTestConfig) -> subprocess.Popen[str]:

Callers 1

make_requestFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected