SuccessGenerator class
Prepares the generator and files for testing
Constructors
-
SuccessGenerator(List<
String> inputFiles, List<String> fixtureFiles, Generator? generator, {required String? partOfFile, bool compareWithFixture = true, String inputDir = defaultInputDir, String fixtureDir = defaultFixtureDir, OnLog? onLog, Level? logLevel}) -
prepares the generator and file for testing
const
-
SuccessGenerator.fromBuilder(List<
String> inputFiles, List<String> fixtureFiles, GetBuilder builder, {String? partOfFile, Map<String, dynamic> ? options, bool compareWithFixture = true, String? extension, String inputDir = defaultInputDir, String fixtureDir = defaultFixtureDir, OnLog? onLog, Level? logLevel}) - uses the provided builder and files for testing
Properties
- builder → Builder
-
the builder for the test
no setter
- builderOptions → BuilderOptions
-
the builder options used for the builder
no setter
- compareWithFixture → bool
-
compares the input content with the generated fixture
final
- content → Content
-
Gets the content for the input and fixture files
no setter
- extension → String?
-
the extension of the generated file
no setter
- fixtureDir → String
-
the directory to use for the generated fixture
final
-
fixtureFiles
→ List<
String> -
the file to test
final
- generator → Generator?
-
the generator to test
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- inputDir → String
-
the directory to use for the input files
final
-
inputFiles
→ List<
String> -
the names of the files to test
final
- partOfFile → String?
-
the file name to be used for
part of [partOfFile].[extension].dart
final - 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
-
test(
) → Future< void> - tests the generator
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- defaultFixtureDir → const String
- the default fixture file directory
- defaultInputDir → const String
- the default input file directory