StubAnalysisPort class
Stub implementation of AnalysisPort for testing.
- Implemented types
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clear(
) → void - Clear all stored data (for test reset).
-
createSpec(
AnalysisSpec spec) → Future< AnalysisSpec> -
Create a new analysis specification.
override
-
evaluateAlert(
String alertRuleId) → Future< AnalysisAlert> -
Evaluate an alert rule and return the result.
override
-
getArtifacts(
{String? jobId, String? specId, AnalysisArtifactType? type, List< String> ? tags, AnalysisTimeRange? timeRange, int? limit}) → Future<List< AnalysisArtifact> > -
Get artifacts filtered by various criteria.
override
-
getJob(
String jobId) → Future< AnalysisJob?> -
Get a job by ID, or null if not found.
override
-
listSpecs(
{String? search, int? limit, int? offset}) → Future< List< AnalysisSpec> > -
List available analysis specifications.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
runAnalysis(
{required String specId, required Map< String, dynamic> parameters, AnalysisExecutionMode mode = AnalysisExecutionMode.batch, AnalysisTimeRange? timeRange}) → Future<AnalysisJob> -
Run an analysis job using the given spec and parameters.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
updateSpec(
String specId, AnalysisSpec spec) → Future< AnalysisSpec> -
Update an existing analysis specification.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited