MCPcopy Create free account
hub / github.com/apache/skywalking-php / setup

Function setup

tests/common/mod.rs:86–109  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

84}
85
86pub async fn setup() -> Fixture {
87 setup_logging();
88 info!(
89 TARGET = TARGET,
90 EXT = EXT,
91 ENABLE_ZEND_OBSERVER = &*ENABLE_ZEND_OBSERVER,
92 "setup fixture"
93 );
94
95 Fixture {
96 http_server_1_handle: tokio::spawn(setup_http_proxy_server(
97 PROXY_SERVER_1_ADDRESS,
98 FPM_SERVER_1_ADDRESS,
99 )),
100 http_server_2_handle: tokio::spawn(setup_http_proxy_server(
101 PROXY_SERVER_2_ADDRESS,
102 FPM_SERVER_2_ADDRESS,
103 )),
104 php_fpm_1_child: setup_php_fpm(1, FPM_SERVER_1_ADDRESS),
105 php_fpm_2_child: setup_php_fpm(2, FPM_SERVER_2_ADDRESS),
106 php_swoole_1_child: setup_php_swoole(1),
107 php_swoole_2_child: setup_php_swoole(2),
108 }
109}
110
111pub async fn teardown(fixture: Fixture) {
112 fixture.http_server_1_handle.abort();

Callers 1

e2eFunction · 0.85

Calls 4

setup_loggingFunction · 0.85
setup_http_proxy_serverFunction · 0.85
setup_php_fpmFunction · 0.85
setup_php_swooleFunction · 0.85

Tested by

no test coverage detected