Table of Contents

Method CompleteAsync

Namespace
QueryGuard.Testing
Assembly
QueryGuard.Testing.dll

CompleteAsync(CancellationToken)

Completes the session and analyzes it.

public ValueTask<QueryGuardResult> CompleteAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Ignored; present so the API reads naturally in async tests.

Returns

ValueTask<QueryGuardResult>

A task producing the result.

Remarks

Analysis is synchronous and in-memory: there is nothing to await. The asynchronous overload exists so that await scope.CompleteAsync() reads consistently with the surrounding async test code, and so the signature can become genuinely asynchronous later without a breaking change.