Commit Graph

143 Commits

Author SHA1 Message Date
Mat Ryer
39f6db0ed3
Merge pull request #73 from HaraldNordgren/TestVendoredBuildConstraints
Create 'TestVendoredBuildConstraints'
2019-01-21 17:46:39 +00:00
Mat Ryer
effe366417
Merge branch 'master' into TestVendoredBuildConstraints 2019-01-21 17:39:53 +00:00
Mat Ryer
bb199b05e0
Merge pull request #59 from breml/static-interface-check
Add static interface implementation check
2019-01-21 17:39:36 +00:00
Mat Ryer
5b2282d8e5
Merge branch 'master' into static-interface-check 2019-01-21 17:22:41 +00:00
Mat Ryer
055cc3eebc
Merge pull request #80 from breml/abs-path-modules
Import package by files if outside of GOPATH
2019-01-21 17:22:14 +00:00
Mat Ryer
2647bdb8ea
Merge branch 'master' into TestVendoredBuildConstraints 2019-01-21 17:17:03 +00:00
Mat Ryer
7855d5d508
Merge branch 'master' into static-interface-check 2019-01-21 17:15:50 +00:00
Mat Ryer
84ab8b08ea
Merge branch 'master' into abs-path-modules 2019-01-21 17:12:59 +00:00
Mat Ryer
18bfd0159a
Merge pull request #82 from breml/update-go-generate
Update mocks with go generate
2019-01-21 17:12:46 +00:00
Lucas Bremgartner
b21592468b Add static interface implementation check
Add an additional line of code per interface to the generated mock file,
which allows the go compiler to statically check if the mock implements
the mocked interface.
2019-01-17 20:20:37 +01:00
Lucas Bremgartner
2eb3df732a Update mocks with go generate 2019-01-17 20:19:34 +01:00
Lucas Bremgartner
d95e87fb17 Import package by files if outside of GOPATH
This is for example the case, if a mock is generated for an external
interface while go modules are enabled.

Fixes: #79
2019-01-17 20:18:30 +01:00
Mat Ryer
c4521bcc9d
Merge pull request #78 from romanlevin/patch-2
Test on supported versions of Go
2019-01-15 13:34:53 +00:00
Roman Levin
5bdba044b9
Test on supported versions of Go
Golint won't even install currently.

Also change the `go get` command to use `golang.org/x/lint/golint`.
2018-11-14 14:33:29 +01:00
Mat Ryer
5df7c6ae56
Merge pull request #66 from pdrum/remove-todo
Remove todo
2018-11-07 15:46:29 +00:00
Harald Nordgren
964359ea22 Create 'TestVendoredBuildConstraints' 2018-09-18 15:44:55 +02:00
pdrum
764e1ef8e5 Remove TODO comments from template.go 2018-08-09 01:41:52 +04:30
Mat Ryer
fbe042a544
Merge pull request #62 from fvosberg/fix/samenameimport
[TEST] check missing package name for packages with the same name
2018-07-24 05:05:03 -07:00
Frederik Vosberg
c3b38fdc87 [FIX] import path of test package 2018-07-11 08:29:15 +02:00
Frederik Vosberg
80d25dbad5 [FIX] import package with same name misses package qualifier 2018-07-11 08:23:28 +02:00
Frederik Vosberg
b60f573125 [FIX] tests assertion 2018-07-10 16:47:25 +02:00
Frederik Vosberg
fc06e5c36a [TEST] check missing package name for packages with the same name 2018-07-10 16:22:49 +02:00
Mat Ryer
f4ed779510
Merge pull request #58 from breml/update-go-generate
Update files generated by moq
2018-06-12 17:22:43 +01:00
Lucas Bremgartner
f70153ef95 Update files generated by moq 2018-06-12 13:40:29 +02:00
Mat Ryer
21f1f84c16
Merge pull request #43 from djui/patch-2
Remove moq prefix
2018-06-12 09:57:21 +01:00
Mat Ryer
0ab5038f6e
Merge branch 'master' into patch-2 2018-06-12 09:33:48 +01:00
Mat Ryer
62f1b46be6
Merge pull request #55 from breml/do-not-edit
Implement "DO NOT EDIT" comment convention
2018-06-12 09:26:22 +01:00
Lucas Bremgartner
6af989dedc Implement "DO NOT EDIT" comment convention
Update all generated files with `go generate ./...`.

See golang/go#13560 for details.
2018-04-18 09:38:43 +02:00
Mat Ryer
90962c8e39
Merge branch 'master' into patch-2 2018-03-07 16:15:58 +00:00
Mat Ryer
a34c2c0732
Merge pull request #42 from djui/patch-1
Make generated mock file non-executable
2018-03-07 09:18:14 +00:00
Mat Ryer
1861224bf0
Merge branch 'master' into patch-2 2018-03-07 09:08:08 +00:00
Mat Ryer
ee06b7e813
Merge branch 'master' into patch-1 2018-03-07 09:07:17 +00:00
Mat Ryer
9e83319287
Merge pull request #45 from warmans/use-file-loader
Use file loader
2018-03-06 21:20:40 +00:00
Uwe Dauernheim
12b80de6ea Remove moq prefix 2018-02-10 17:56:34 +01:00
Stefan Warman
565e1649f5 Use x/tools/go/loader to load packages instead of custom importer. 2018-02-05 14:29:41 +01:00
Uwe Dauernheim
1b1675c967
Make generated mock file non-executable 2017-12-25 14:03:29 +01:00
Mat Ryer
c80e9a745b
Merge pull request #35 from dpetersen/appease-golint
Ensure generated content is friendlier to golint
2017-12-06 15:12:51 +00:00
Mat Ryer
acbb9b7883
Merge branch 'master' into appease-golint 2017-12-06 15:07:50 +00:00
Mat Ryer
b7fbde9dac Merge branch 'master' of https://github.com/matryer/moq 2017-12-06 15:01:44 +00:00
Mat Ryer
595a9745ee added go generate with vendor test 2017-12-06 15:01:42 +00:00
Don Petersen
b2769851ce Ensure generated content is friendlier to golint
I've stolen the list of "initialisms" from the golint codebase. Normally
I might try and figure out some way to bring the list in from the source
rather than just copy and paste it, since it may fall out of date in the
future. However, if you've ever followed any of the PRs in the golint
repository, you'll know any change like that would likely be rejected.
Most of this list hasn't changed in the last 4 years, so my feeling is
that it won't require many more updates for the life of this project.
2017-11-13 00:33:12 +00:00
Mat Ryer
cc6b1a47fa Merge pull request #31 from meAmidos/update-example
Fix the example in the README
2017-09-19 08:53:08 +01:00
Dmitry Matrosov
cbc95e6b5a Update the example in the README
The example used an outdated method `CallsTo` which is no longer generated when creating a mock.
2017-09-11 09:54:35 +10:00
Mat Ryer
3dc8438cf7 Merge pull request #26 from fvosberg/fix-emptyinterfaces
[PATCH] Omit sync package while mocking empty interface
2017-08-03 17:00:27 +01:00
Frederik Vosberg
a2671b9bfc Added missing test package for empty interface mocking 2017-08-02 22:57:43 +02:00
Frederik Vosberg
d17151fc4e Merge branch 'master' into fix-emptyinterfaces 2017-08-02 22:26:59 +02:00
Mat Ryer
71d368f14f golint fixes 2017-08-02 16:06:35 +01:00
Mat Ryer
bd3bf33613 golint fixes 2017-08-02 16:05:42 +01:00
Mat Ryer
c3ea983498 Merge pull request #25 from fvosberg/fix-test-execution-in-forks
[PATCH] Made tests independent from package path
2017-08-02 16:00:01 +01:00
Frederik Vosberg
e2c68b96ea Merge branch 'master' into fix-test-execution-in-forks 2017-08-02 10:13:34 +02:00