GithubTestStore class

Constructors

GithubTestStore({String branch = 'main', String committerEmail = 'noop@github.com', String committerName = 'ATF GH Plugin', required GitHub github, String goldenImagesPath = 'goldens', required RepositorySlug slug, String testsPath = 'tests'})

Properties

branch String
final
goldenImagesPath String
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
slug → RepositorySlug
final
testsPath String
Optional path to store tests.
final

Methods

goldenImageWriter(TestReport report) Future<void>
Writes the golden images from the report to Cloud Storage and also writes the metadata that allows the reading of the golden images. This will throw an exception on failure.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
testImageReader({required TestDeviceInfo deviceInfo, required String imageId, String? suiteName, required String testName, int? testVersion}) Future<Uint8List?>
Reader to read a golden image from GitHub.
testReader(BuildContext? context, {String? suiteName}) Future<List<PendingTest>>
Implementation of the TestReader functional interface that can read test data from GitHub.
testWriter(BuildContext context, Test test) Future<bool>
Implementation of the TestWriter functional interface that can submit test data to GitHub.
toString() String
A string representation of this object.
inherited
uploadFile({required List<int> data, required String message, required String path}) Future<void>
Uploads a file to GitHub

Operators

operator ==(Object other) bool
The equality operator.
inherited