A Go port of Ruby’s factory_girl.
Coming soon. In the meantime, take a look at the tests.
go get github.com/gdavison/factory_gorl
So far, it can be used to initialize (Build
) an in-memory object and to persist the
object (Create
) using gorp. Associations have not yet been implemented.
When Create
ing or Build
ing an object, the factory can be overridden by passing a builder function.
Factory inheritance is implemented.
Copyright © 2014 Graham Davison.