Skip to content

Commit

Permalink
Add more complex comments (#30)
Browse files Browse the repository at this point in the history
* generator: added more complex comment parsing.

* Updated dependencies
  • Loading branch information
abice authored Feb 14, 2019
1 parent 67c9f0e commit 835e766
Show file tree
Hide file tree
Showing 699 changed files with 1,086 additions and 167,487 deletions.
69 changes: 24 additions & 45 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,59 +1,38 @@
version: 2


common_parts: &common_parts
working_directory: /go/src/github.com/abice/go-enum
steps:
- checkout
- run:
name: Install Go Deps
command: |
go get -v github.com/jteeuwen/go-bindata/... golang.org/x/tools/cmd/cover github.com/mattn/goveralls github.com/modocache/gover github.com/golang/mock/gomock
go install github.com/golang/mock/mockgen
- run:
name: Build
command: |
make build
- run:
name: Test
command: |
make cover
jobs:
golang_1.9:
working_directory: /go/src/github.com/abice/go-enum
<<: *common_parts
docker:
- image: circleci/golang:1.9
steps:
- checkout
- run: &installgodeps
name: Install Go Deps
command: |
go get -v github.com/jteeuwen/go-bindata/...
go get -v golang.org/x/tools/cmd/cover
go get -v github.com/mattn/goveralls
go get -v github.com/modocache/gover
go get -v github.com/golang/mock/gomock
go install github.com/golang/mock/mockgen
- run:
name: Build
command: |
make build
- run:
name: Test
command: |
make cover
golang_1.10:
working_directory: /go/src/github.com/abice/go-enum
docker:
- image: circleci/golang:1.10
steps:
- checkout
- run: *installgodeps
- run:
name: Build
command: |
make build
- run:
name: Test
command: |
make cover
<<: *common_parts
golang_1.11:
working_directory: /go/src/github.com/abice/go-enum
docker:
- image: circleci/golang:1.11
steps:
- checkout
- run: *installgodeps
- run:
name: Build
command: |
make build
- run:
name: Test
command: |
make cover
make coveralls
<<: *common_parts

workflows:
version: 2
Expand Down
14 changes: 3 additions & 11 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ required = ["github.com/golang/mock/gomock"]

[[constraint]]
name = "github.com/golang/mock"
version = "1.1.1"
version = "1.2.0"
11 changes: 11 additions & 0 deletions example/commented.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,14 @@ value3 // Commented value 3
)
*/
type Commented int

// ComplexCommented has some extra complicated parsing rules.
/*
ENUM(
_, // Placeholder with a ',' in it. (for harder testing)
value1 // Commented value 1
value2,
value3 // Commented value 3
)
*/
type ComplexCommented int
63 changes: 63 additions & 0 deletions example/commented_enum.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions example/sql_mock_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 835e766

Please sign in to comment.