v1.4.2
source_gen_test
source_gen पैकेज के लिए परीक्षण समर्थन। सफलता और विफलता के मामलों के आसान विश्लेषण के लिए सहायता कार्यक्रम शामिल हैं।
13लाइक 49.6 हज़ार30-दिन डाउनलोड160Pub अंक
macOSWindowsLinux
पैकेज: source_gen जनरेटर्स के लिए विश्वसनीय परीक्षण बनाने में सुविधा के लिए एपीआई का परीक्षण करें
यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।
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 {}
Test against a golden output file if you also want to write tests on the output itself.
part 'goldens/testclass2.dart';
@ShouldGenerateFile(
'goldens/testclass2.dart',
partOfCurrent: true,
configurations: ['default', 'no-prefix-required'],
)
@ShouldThrow(
'Uh...',
configurations: ['vague'],
element: false,
)
@TestAnnotation()
class TestClass2 {}
Other helpers are also provided.
निर्भरता सूची 11 आइटम
>=9.0.0 <15.0.0^4.0.3^3.5.4^3.1.3^1.16.0^1.9.0^4.1.1^1.27.0^0.3.1^1.19.0^3.0.0उपयोग के अनुसार छाँटें, गतिविधि की तुलना करें और अपनाने से पहले मूल प्रोजेक्ट की आवश्यकताएँ जाँचें।
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗