mockalization_factory 2.0.2 copy "mockalization_factory: ^2.0.2" to clipboard
mockalization_factory: ^2.0.2 copied to clipboard

Annotation-based mock data generator for Dart. Add @Mockalization to classes to auto-generate realistic fake data with nullable, collection, and format support.

2.0.2 #

  • Lowered SDK constraint from ^3.9.0 to ^3.7.0 for wider compatibility

2.0.1 #

  • Shortened package description for pub.dev compliance (max 180 characters)
  • Added example file for pub.dev documentation score

2.0.0 #

  • BREAKING: Replaced MockFactory mixin with extension-based API (UserMock.fake(), UserMock.fakeList())
  • BREAKING: Replaced MockFormatType with MockFormat enum (33 formats)
  • BREAKING: Replaced MockProperty.formatType with MockProperty.format
  • Added nullable type support with configurable nullProbability
  • Added MockProperty.values for random selection from a list
  • Added MockProperty.minLength and MockProperty.maxLength
  • Added MockFormat enum with 33 formats: email, fullName, phoneNumber, url, uuid, and more
  • Added mockChance() and mockDouble() runtime helpers
  • Re-exported Faker class for convenience
  • Removed Flutter SDK dependency (now a pure Dart package)

1.0.0 #

  • Initial release
  • @Mockalization() class annotation
  • @MockProperty() field annotation with length, max, min, value, formatType
  • @MockIgnore() field annotation
  • MockFactory<T> mixin with generateFake() and generateFakeList()
2
likes
160
points
134
downloads

Publisher

verified publishersangik.o-r.kr

Weekly Downloads

Annotation-based mock data generator for Dart. Add @Mockalization to classes to auto-generate realistic fake data with nullable, collection, and format support.

Repository (GitHub)
View/report issues

Topics

#mock #fake-data #testing #code-generation #faker

Documentation

API reference

License

MIT (license)

Dependencies

faker, uuid

More

Packages that depend on mockalization_factory