Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

Support for variadic arguments in SetArgs method #703

Closed
wants to merge 33 commits into from
Closed

Support for variadic arguments in SetArgs method #703

wants to merge 33 commits into from

Conversation

djbelyak
Copy link

@djbelyak djbelyak commented May 4, 2023

This PR is addressing the one of the older issue in the repository:
#174 Support variadic pointer parameter on caller.SetArg

Much appreciate to @bergotorino for his PR as an inspiration!

Taking into account previous feedback, I added tests for this case

@djbelyak djbelyak requested a review from codyoss as a code owner May 4, 2023 19:48
sywhang and others added 28 commits May 17, 2023 10:16
Add Uber maintainers.
This rewrites the import path from "github.com/golang/mock" to
"go.uber.org/mock".
Ran go mod tidy and removed a bunch of unused dependencies from go.sum.

Ideally we should run this as part of some lint check step as we do in
other uber-go repositories.
Update README to reflect:
- current status
- installation path
- supported Go versions
- Remove irrelevant info
from Go 1.19, `go fmt` reformats doc comments.

https://go.dev/doc/go1.19#go-doc

> Go 1.19 adds support for links, lists, and clearer headings in doc
comments. As part of this change, [gofmt](https://go.dev/cmd/gofmt) now
reformats doc comments to make their rendered meaning clearer. See “[Go
Doc Comments](https://go.dev/doc/comment)” for syntax details and
descriptions of common mistakes now highlighted by gofmt. As another
part of this change, the new package
[go/doc/comment](https://go.dev/pkg/go/doc/comment/) provides parsing
and reformatting of doc comments as well as support for rendering them
to HTML, Markdown, and text.
Go 1.18 is no longer supported.
Now, we can bump Go version to 1.19.
- Bump checkout/setup-go actions versions
- Drop pre-1.18 action
- Edit action permissions to readonly
This preps v0.1.0 release. Added a CHANGELOG
file to keep track of release changes according
to semver.

Ref #17.
Originally discussed in #238.

This adds a functional option parameter to NewController to allow adding
future configurations to control the behavior of Controller.

This will come in handy for implementing features like the one in #22.
This minimal PR documents the installation command. It took me a moment
to look it up from the github.com/golang repo. Hopefully this can help
save a few moments for others.

---------

Co-authored-by: Sung Yoon Whang <sungyoonwhang@gmail.com>
Go reference uses module name rather than repository URL as a package
name.
This is an initial implementation of the proposal outlined in this
issue, #685
Now that we've released an initial version, update the README to reflect
that.
migrate from #630
more:
#622 
#427 
#634 
#657

---------

Co-authored-by: Sung Yoon Whang <sungyoonwhang@gmail.com>
Upgrade go.mod
Hi,

Small change after the migration from golang to uber, so the users don't
end up running the wrong tests.

Signed-off-by: Adrien Barreau <adrien.barreau@live.fr>
This PR replaces the deprecated package `io/ioutil` with `io` and `os`.
From
[actions/setup-go@v4.0.0](https://github.com/actions/setup-go/releases/tag/v4.0.0),
the action caches the dependencies by default. We don't need to use
actions/cache any more.

In addition, caching the dependencies requires `go.sum`.
actions/checkout should precede actions/setup-go.
alexandear and others added 4 commits August 3, 2023 14:57
This PR replaces `interface{}` with `any` by running the command:
```sh
gofmt -w -r 'interface{} -> any' .
```
This PR changes URLs in the docs:
- replace `https://github.com/uber/mock` to
`https://github.com/uber-go/mock`;
- replace `https://golang.org/` to `https://go.dev/`;
- update README with a link to CONTRIBUTIONS.md;
- fix grammar issues.
fixes [#646](#646),
Hi, my friends.
Merging this pull request can fix old bugs related to defining the local
names of imported packages by using the -imports flag.
I have also added a test for that, and it works properly.
If you have any ideas or concerns regarding the PR, feel free to tell
me.

---------

Co-authored-by: Erfan Momeni <Erfan.Momeni@snapp.cab>
Co-authored-by: n0trace <n0trace@protonmail.com>
Co-authored-by: utagawa kiki <utagawakiki@gmail.com>
Co-authored-by: Sung Yoon Whang <sungyoonwhang@gmail.com>
@djbelyak djbelyak closed this by deleting the head repository Oct 31, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.