mock library

🧩 Mocking Library

This library provides tools for mocking and stubbing objects in your tests.


🧩 Key Areas:

  • Mocking and stubbing
  • Test utilities
  • Test runners

@author Evaristus Adimonyemma @emailAddress evaristusadimonyemma@hapnium.com @organization Hapnium

Classes

InternalMockLibraryGenerator
We create this class for the purpose of internal testing of the JetLeaf's framework. This class is only visible within the framework and not to be used by external users. For users who want to test their application, they can use the MockLibraryGenerator to bootstrap their application.
MockLibraryGenerator
A mock implementation of LibraryGenerator that generates reflection metadata using Dart's mirrors API without filesystem operations.
MockLibraryGeneratorParams
Configuration parameters for creating a MockLibraryGenerator.
MockRuntimeScanner
A lightweight mock implementation of RuntimeScanner for testing and development.

Typedefs

MockLibraryGeneratorFactory = LibraryGenerator Function(MockLibraryGeneratorParams)
Signature for creating custom mock library generators.
OnLogged = void Function(String message)
Signature for logging callbacks used to report runtime scanning messages.