From 323a4f7157b08557d268c7f5cbc23fee2ab03389 Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Tue, 15 Dec 2020 14:14:32 +0300 Subject: Update codecov, add psr-bench-worker.php for benches --- codecov.yml | 12 ++++++++++-- tests/psr-worker-bench.php | 28 ++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 tests/psr-worker-bench.php diff --git a/codecov.yml b/codecov.yml index e34b27ea..75e92a5f 100644 --- a/codecov.yml +++ b/codecov.yml @@ -1,4 +1,12 @@ coverage: status: - project: on - patch: on \ No newline at end of file + project: + default: + target: auto + threshold: 0% + informational: true + patch: + default: + target: auto + threshold: 0% + informational: true \ No newline at end of file diff --git a/tests/psr-worker-bench.php b/tests/psr-worker-bench.php new file mode 100644 index 00000000..e6df81ad --- /dev/null +++ b/tests/psr-worker-bench.php @@ -0,0 +1,28 @@ +waitRequest()) { + try { + $resp = new \Nyholm\Psr7\Response(); + $resp->getBody()->write("hello world"); + + $psr7->respond($resp); + } catch (\Throwable $e) { + $psr7->getWorker()->error((string)$e); + } +} -- cgit v1.2.3