Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions test/builder_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,13 @@ void main() {
throwsA(const isInstanceOf<InvalidGenerationSourceError>()));
});

test('Does not fail when there is no output', () async {
var sources = _createPackageStub(pkgName, testLibContent: 'class A {}');
var builder =
new GeneratorBuilder([new CommentGenerator(forClasses: false)]);
await testBuilder(builder, sources, outputs: {});
});

test('Allow no "library" when requireLibraryDirective=false', () async {
var sources = _createPackageStub(pkgName, testLibContent: 'class A {}');
var builder = new GeneratorBuilder([const CommentGenerator()],
Expand Down