golang / mock

GoMock is a mocking framework for the Go programming language.
Apache License 2.0
9.3k stars 611 forks source link

check error for os.Setenv in parse_test.go #472

Closed antcs closed 4 years ago

antcs commented 4 years ago

Description

Found some missing error checks for the os.SetEnv() method in mockgen/parse_test.go.

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you review them:

Reviewer Notes

Release Notes

/

Fixes: #473

googlebot commented 4 years ago

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

:memo: Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here with @googlebot I signed it! and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹī¸ Googlers: Go here for more info.

googlebot commented 4 years ago

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

:memo: Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here with @googlebot I signed it! and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹī¸ Googlers: Go here for more info.

codyoss commented 4 years ago

@antcs can you please create an issue for this PR. We like to discuss things before making any code changes and figure out what use cases things cover.

antcs commented 4 years ago

@codyoss I opened a new issue: https://github.com/golang/mock/issues/473

antcs commented 4 years ago

@googlebot I signed it!

googlebot commented 4 years ago

CLAs look good, thanks!

ℹī¸ Googlers: Go here for more info.

googlebot commented 4 years ago

CLAs look good, thanks!

ℹī¸ Googlers: Go here for more info.

codyoss commented 4 years ago

@antcs Thanks for your contribution 🎆