Skip to content

Commit

Permalink
add generate command to applications (#27)
Browse files Browse the repository at this point in the history
- Add a infrastructure layer with interfaces for accessing filesystem and reading the clock
- Add a GenerateCommand to execute generation
- Add columnName where needed
- Add DiffDeque with domain logic related to the array of diffs.
  • Loading branch information
alexandremr01 authored Jun 7, 2022
1 parent 1368635 commit f15460c
Show file tree
Hide file tree
Showing 35 changed files with 1,228 additions and 292 deletions.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,7 @@ release:
release --rm-dist

mock:
@mockgen -source=domain/driver.go -destination=domain/driver_mock.go -package=domain
@mockgen -source=domain/driver.go -destination=domain/driver_mock.go -package=domain
@mockgen -source=infrastructure/clock.go -destination=infrastructure/clock_mock.go -package=infrastructure
@mockgen -source=infrastructure/file.go -destination=infrastructure/file_mock.go -package=infrastructure
@mockgen -source=applications/migrationscripts.go -destination=applications/migrationscripts_mock.go -package=applications
16 changes: 16 additions & 0 deletions applications/application_suite_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package applications

import (
"testing"

. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)

func TestApplication(t *testing.T) {
_t = t
RegisterFailHandler(Fail)
RunSpecs(t, "Application Test Suite")
}

var _t *testing.T
Loading

0 comments on commit f15460c

Please sign in to comment.