data_builder_test 0.10.0
data_builder_test: ^0.10.0 copied to clipboard
craft_runner builder plus annotations that generate immutable fluent data builders from @dataBuilder-annotated test classes.
0.10.0 #
Initial release. Versioned in lock-step with the craft_runner ecosystem.
DataBuilderCraftBuilder— acraft_runnersingle-file builder that emits a<Name>Builder extends Buildablepart next to every@dataBuilderclass.- Immutable fluent API: a const default constructor, a
withX(...)per field returning a new instance, andbuild()producing the serialized map. - Untouched fields fall back to their declared default via a per-field
_<field>IsSetflag, so a test states only the values it cares about. @DataField(key:, includeIfNull:, settable:)for per-field map key overrides, null omission, and read-only fields.- Nested builders: a field of a non-scalar type serializes recursively, for both
single values and
List<...>.