pub struct ParallelRequestGenerator;Expand description
Generates k6 JavaScript code for parallel request execution
Implementations§
Source§impl ParallelRequestGenerator
impl ParallelRequestGenerator
Sourcepub fn generate_parallel_post(
config: &ParallelConfig,
path: &str,
body_template: &str,
id_field: &str,
) -> String
pub fn generate_parallel_post( config: &ParallelConfig, path: &str, body_template: &str, id_field: &str, ) -> String
Generate k6 code for parallel POST requests
Generates code that uses http.batch() to execute multiple requests in parallel, optionally collecting the response IDs for subsequent operations.
Sourcepub fn generate_parallel_get(path_template: &str, id_param: &str) -> String
pub fn generate_parallel_get(path_template: &str, id_param: &str) -> String
Generate k6 code for parallel GET requests using collected IDs
Sourcepub fn generate_parallel_delete(path_template: &str, id_param: &str) -> String
pub fn generate_parallel_delete(path_template: &str, id_param: &str) -> String
Generate k6 code for parallel DELETE requests using collected IDs
Sourcepub fn generate_batch_helper(config: &ParallelConfig) -> String
pub fn generate_batch_helper(config: &ParallelConfig) -> String
Generate k6 helper functions for batch operations
Sourcepub fn generate_complete_scenario(
config: &ParallelConfig,
base_path: &str,
detail_path: &str,
id_param: &str,
body_template: &str,
id_field: &str,
include_cleanup: bool,
) -> String
pub fn generate_complete_scenario( config: &ParallelConfig, base_path: &str, detail_path: &str, id_param: &str, body_template: &str, id_field: &str, include_cleanup: bool, ) -> String
Generate complete parallel test scenario
Auto Trait Implementations§
impl Freeze for ParallelRequestGenerator
impl RefUnwindSafe for ParallelRequestGenerator
impl Send for ParallelRequestGenerator
impl Sync for ParallelRequestGenerator
impl Unpin for ParallelRequestGenerator
impl UnwindSafe for ParallelRequestGenerator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more