From 54a1592d97c39d4dd390081dbb7651eba8f75d87 Mon Sep 17 00:00:00 2001 From: andrussal Date: Sun, 8 Mar 2026 15:29:52 +0100 Subject: [PATCH] Rename external-only builder entry point --- testing-framework/core/src/scenario/definition.rs | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/testing-framework/core/src/scenario/definition.rs b/testing-framework/core/src/scenario/definition.rs index 4f4d4ac..ff69ac5 100644 --- a/testing-framework/core/src/scenario/definition.rs +++ b/testing-framework/core/src/scenario/definition.rs @@ -295,8 +295,8 @@ macro_rules! impl_common_builder_methods { } #[must_use] - pub fn with_external_only_sources(self) -> Self { - self.map_core_builder(|builder| builder.with_external_only_sources()) + pub fn with_external_only(self) -> Self { + self.map_core_builder(|builder| builder.with_external_only()) } #[must_use] @@ -646,7 +646,7 @@ impl Builder { } #[must_use] - pub fn with_external_only_sources(mut self) -> Self { + pub fn with_external_only(mut self) -> Self { self.sources = self.sources.into_external_only(); self } @@ -656,7 +656,13 @@ impl Builder { self, nodes: impl IntoIterator, ) -> Self { - self.with_external_only_sources().with_external_nodes(nodes) + self.with_external_only().with_external_nodes(nodes) + } + + #[must_use] + #[doc(hidden)] + pub fn with_external_only_sources(self) -> Self { + self.with_external_only() } fn add_workload(&mut self, workload: Box>) {