GitRunResult class Testing

Output of a git command that exited successfully.

Bytes are kept raw; the stdout and stderr getters decode on demand as UTF-8 with malformed bytes tolerated.

Constructors

GitRunResult({required Uint8List stdoutBytes, required Uint8List stderrBytes, int exitCode = 0})
Creates a result from the raw stdoutBytes and stderrBytes of a command that exited with exitCode.
GitRunResult.fromStrings(String stdout, {String stderr = '', int exitCode = 0})
Builds a result from decoded strings, for fake runners and tests.
factory

Properties

exitCode → int
Process exit code; always 0 for results returned by GitRunner.run, which reports a non-zero exit as a failure instead.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stderr → String
Standard error decoded as UTF-8, malformed bytes replaced.
no setter
stderrBytes → Uint8List
Raw standard error of the command.
final
stdout → String
Standard output decoded as UTF-8, malformed bytes replaced.
no setter
stdoutBytes → Uint8List
Raw standard output of the command.
final

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