UnitTestTemplate class

Generates clean, readable unit test code using string templates.

Constructors

UnitTestTemplate()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

generate({required String className, required String importPath, required List<String> methods, bool isTopLevel = false, String? mockClassName, String? mockImportPath}) → String
Generates a complete unit test file for a service/repository/controller.