faker_gen 0.2.0
faker_gen: ^0.2.0 copied to clipboard
Code generator for fake factory functions. Generates fakeClassName() functions for classes annotated with @FakeIt().
Changelog #
0.2.0 #
- Added support for
@FakeAs.alwaysNull()to always set nullable fields tonull - Added support for
@FakeValue()annotation for constant values- Works with primitives (
String,int,bool, etc.) - Works with complex objects (e.g.,
@FakeValue(Author(name: 'System', email: 'x@y.com')))
- Works with primitives (
- Added class hierarchy search for annotations
- Annotations on constructor parameters are now supported
0.1.0 #
- Initial release
- Code generator for
@FakeIt()annotated classes - Generates
fakeClassName()factory functions with optional parameter overrides - Support for
@FakeAs()to customize field generation usingFakermethods - Support for
@FakeWith()for custom fake functions - Support for nested classes and complex type hierarchies
- Support for primitive types, collections (
List,Set,Map), and nullable types