go-argmapper
go-argmapper copied to clipboard
Add ability to assert configuration is valid without executing call
This is possibly covered on Redefine
and I may not understand the use case exactly, but I'm trying to figure out if there is a way to assert that the defined converters, etc, would "work", for example in unit tests.
I've used AutoMapper before which has a method like config.AssertConfigurationIsValid();
that asserts that all of your mappings are present and/or satisfied (the use case of AutoMapper is a bit different, since its field by field, not necessarily DI).
In my usage, its not for dynamically loaded plugins, but for an SDK consumer, so the conversions could be "walked" without execution.