faker_gen 0.2.0 copy "faker_gen: ^0.2.0" to clipboard
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 to null
  • 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')))
  • 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 using Faker methods
  • 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
1
likes
0
points
272
downloads

Publisher

unverified uploader

Weekly Downloads

Code generator for fake factory functions. Generates fakeClassName() functions for classes annotated with @FakeIt().

Repository (GitHub)
View/report issues

Topics

#testing #mocking #faker #code-generation #build-runner

License

unknown (license)

Dependencies

analyzer, build, code_builder, dart_style, faker_annotation, source_gen

More

Packages that depend on faker_gen