Skip to main content

render_assertion_with_streaming

Function render_assertion_with_streaming 

Source
pub fn render_assertion_with_streaming(
    out: &mut String,
    assertion: &Assertion,
    result_var: &str,
    module: &str,
    dep_name: &str,
    is_error_context: bool,
    unwrapped_fields: &[(String, String)],
    field_resolver: &FieldResolver,
    result_is_tree: bool,
    result_is_simple: bool,
    result_is_vec: bool,
    result_is_option: bool,
    returns_result: bool,
    _is_streaming: bool,
)
Expand description

Same as render_assertion, but with an is_streaming flag so the streaming-virtual field arm can fire when result_var is the raw call result rather than the collected chunks variable. Callers that already drained the stream into a chunks: Vec<_> local should pass is_streaming = true.