MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / test_empty_config

Function test_empty_config

gateway/src/main_service/tests.rs:49–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47
48#[tokio::test]
49async fn test_empty_config() {
50 let state = create_test_state().await;
51 let wg_config = state.lock().generate_wg_config().unwrap();
52 insta::assert_snapshot!(wg_config);
53}
54
55fn policy(restrict: bool, ports: &[u16]) -> PortPolicy {
56 PortPolicy {

Callers

nothing calls this directly

Calls 3

create_test_stateFunction · 0.85
generate_wg_configMethod · 0.80
lockMethod · 0.45

Tested by

no test coverage detected