C2paRsOracle class final

Runs an explicitly configured, version-pinned c2pa-rs command.

Arguments may contain {asset}, {json}, and {crjson} placeholders. The adapter writes all transient files beneath caller-owned scratchDirectory and removes each invocation directory after completion.

This helper is VM-only, shells out to c2patool or a c2pa-rs test binary, and is not safe for web tests. Missing binaries surface from Process.start, typically as a ProcessException.

Constructors

C2paRsOracle({required C2paRsOracleCommand command, required Directory scratchDirectory, Duration timeout = const Duration(seconds: 10), int maxOutputBytes = 1024 * 1024})
Creates a VM-only oracle runner with bounded runtime and output.

Properties

command → C2paRsOracleCommand
The external c2patool or c2pa-rs command to run for each asset.
final
hashCode → int
The hash code for this object.
no setterinherited
maxOutputBytes → int
Combined byte limit for stdout, stderr, JSON, and crJSON output.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scratchDirectory → Directory
Absolute directory used for per-invocation asset and report files.
final
timeout → Duration
Maximum wall-clock time allowed for one oracle subprocess.
final

Methods

inspect(FixtureAsset asset) → Future<C2paRsOracleResult>
Inspects asset by writing it to disk and launching the oracle command.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited