TestImportTask class tasks

A task that uses a TestImportLinter to check for invalid imports in test files.

This task analyzes a single file in the test directory with the test import linter. In case an invalid import is found, the task will be TaskResult.rejected.

Implemented types

Constructors

TestImportTask({required AnalysisContextCollectionEntryProviderFn analysisContextCollectionProvider, required TaskLogger logger, required TestImportLinter linter})
Default Constructor.
const

Properties

analysisContextCollectionProvider AnalysisContextCollectionEntryProviderFn
The AnalysisContextCollectionEntryProviderFn used by this task.
final
hashCode int
The hash code for this object.
no setterinherited
linter → TestImportLinter
The TestImportLinter used by this task.
final
logger TaskLogger
The TaskLogger instance used by this task.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
taskName String
Returns the user-visible name of the task.
no setteroverride

Methods

call(RepoEntry entry) Future<TaskResult>
Executes the task on the given entry.
override
canProcess(RepoEntry entry) bool
Checks if a RepoEntry can be processed by this task.
override
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