Added template sorter, MainTest separation

* Moved MainTests into a dedicated folder
* Added sorter for templates (sorts structs to top)
* Fixed all the broken tests
* Tidied up output.go functions
* Only creating one MainTest (main_test.go) per app run now
* Split test imports up into normal test imports & main test imports
This commit is contained in:
Patrick O'brien 2016-04-07 06:10:12 +10:00
parent c84d35d394
commit d3aeb7375d
13 changed files with 399 additions and 198 deletions

View file

@ -24,13 +24,6 @@ func main() {
os.Exit(-1)
}
// Load all templates
err = cmdData.LoadTemplates()
if err != nil {
fmt.Printf("Failed to load templates: %s\n", err)
os.Exit(-1)
}
// Set up the cobra root command
var rootCmd = &cobra.Command{
Use: "sqlboiler",