TestEntryValidator class final
Validates a configured test entry before TestAppPatcher mutates files.
The validator is deliberately side-effect free: it only reads the entry and returns its source so the patcher can reuse that read during generation.
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
-
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
Static Methods
-
readOptionalEntrySource(
{required String appDir, required String relativePath}) → String? - Reads an optional entry only after its application-relative path has passed the same symlink confinement check as configured entries.
-
validate(
{required File entry, required bool usesApplicationEntry, required ExecutionMode mode, required String configuredPath, required String activePath}) → String? -
validateForPatching(
{required String appDir, required File entry, required bool usesApplicationEntry, required ExecutionMode mode, required String configuredPath, required String activePath}) → String? - Validates all source paths before the patcher starts its file transaction.
-
validatePathWithinRoot(
{required String root, required String relativePath}) → void -
Rejects application-relative paths that escape through an existing
symbolic link. Lexical
..checks alone do not protect a write such asintegration_test/entry.dartwhenintegration_testpoints elsewhere. -
validateRelativePath(
String value) → void