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

Code generator for mockalization. Analyzes @Mockalization-annotated classes and generates extension-based mock data factories with build_runner.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add mockalization_generator

With Flutter:

 $ flutter pub add mockalization_generator

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  mockalization_generator: ^2.0.2

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:mockalization_generator/builder.dart';
1
likes
160
points
127
downloads

Publisher

verified publishersangik.o-r.kr

Weekly Downloads

Code generator for mockalization. Analyzes @Mockalization-annotated classes and generates extension-based mock data factories with build_runner.

Repository (GitHub)
View/report issues

Topics

#mock #fake-data #testing #code-generation #build-runner

Documentation

API reference

License

MIT (license)

Dependencies

analyzer, build, mockalization_factory, source_gen

More

Packages that depend on mockalization_generator