FaultType enum

Types of faults that can be injected into AI model stress tests.

Each value represents a distinct failure scenario that an on-device AI model may encounter in production.

Inheritance
Available extensions

Values

memoryPressure → const FaultType

Simulates memory pressure to trigger OOM or degraded performance.

Relevant for models that allocate large buffers during inference.

malformedInput → const FaultType

Injects malformed, empty, or oversized inputs.

Tests that the model validates and handles bad inputs gracefully.

latency → const FaultType

Simulates artificial latency / performance degradation.

Useful for testing timeout handling in calling code.

thermalThrottle → const FaultType

Simulates CPU/GPU thermal throttling.

Models can exhibit 5–10× slower inference when the device is hot.

networkFailure → const FaultType

Simulates network failures for cloud-dependent model components.

Relevant for hybrid on-device/cloud inference pipelines.

quantizationDrift → const FaultType

Simulates gradual precision loss / output degradation.

Tests that the model degrades gracefully rather than crashing.

modelSwap → const FaultType

Simulates model swapping or corruption.

Useful for testing behaviour when model files get corrupted.

confidenceValidation → const FaultType

Validates that model confidence score stays above threshold.

gpuMemoryPressure → const FaultType

Simulates GPU memory pressure.

dataCorruption → const FaultType

Simulates input data corruption (image noise, missing pixels, audio glitches).

modelVersionMismatch → const FaultType

Simulates model version mismatch (older/newer/incompatible versions loaded).

benchmark → const FaultType

Benchmark run without fault injection.

Properties

displayName String

Available on FaultType, provided by the FaultTypeX extension

Human-readable display name for UI and reports.
no setter
hashCode int
The hash code for this object.
no setterinherited
icon String

Available on FaultType, provided by the FaultTypeX extension

Visual icon character for terminal and Markdown logs.
no setter
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Constants

values → const List<FaultType>
A constant List of the values in this enum, in order of their declaration.