source_gen_test 1.0.6
source_gen_test: ^1.0.6 copied to clipboard
Test support for the source_gen package. Includes helpers to make it easy to validate both success and failure cases.
Make it easy to test Generators
derived from package:source_gen
by
annotating test files.
@ShouldGenerate(
r'''
const TestClass1NameLength = 10;
const TestClass1NameLowerCase = testclass1;
''',
configurations: ['default', 'no-prefix-required'],
)
@ShouldThrow(
'Uh...',
configurations: ['vague'],
element: false,
)
@TestAnnotation()
class TestClass1 {}
Other helpers are also provided.