Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use go run for mockgen, goimports and ginkgo #3616

Merged
merged 5 commits into from Nov 11, 2022

Conversation

kixelated
Copy link
Contributor

Works without go install and uses the (pinned) version in go.mod

Luke Curley added 2 commits November 8, 2022 13:55
Works without go install and uses the version in go.mod
//go:generate sh -c "mockgen -package mockackhandler -destination ackhandler/sent_packet_handler.go github.com/lucas-clemente/quic-go/internal/ackhandler SentPacketHandler"
//go:generate sh -c "mockgen -package mockackhandler -destination ackhandler/received_packet_handler.go github.com/lucas-clemente/quic-go/internal/ackhandler ReceivedPacketHandler"
//go:generate sh -c "go run github.com/golang/mock/mockgen -package mockquic -destination quic/stream.go github.com/lucas-clemente/quic-go Stream"
//go:generate sh -c "go run github.com/golang/mock/mockgen -package mockquic -destination quic/early_conn_tmp.go github.com/lucas-clemente/quic-go EarlyConnection && sed 's/qtls.ConnectionState/quic.ConnectionState/g' quic/early_conn_tmp.go > quic/early_conn.go && rm quic/early_conn_tmp.go && goimports -w quic/early_conn.go"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we do the same for goimports?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeaaah I was just about to suggest that. And ginkgo?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And ginkgo?

You mean in CI setup? sgtm

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, ginkgo doesn't really matter since I think go install uses the version in go.mod? But might as well.

@codecov
Copy link

codecov bot commented Nov 8, 2022

Codecov Report

Base: 85.48% // Head: 85.50% // Increases project coverage by +0.01% 🎉

Coverage data is based on head (41c0be0) compared to base (af30cef).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3616      +/-   ##
==========================================
+ Coverage   85.48%   85.50%   +0.01%     
==========================================
  Files         140      141       +1     
  Lines       10271    10293      +22     
==========================================
+ Hits         8780     8800      +20     
- Misses       1106     1108       +2     
  Partials      385      385              
Impacted Files Coverage Δ
http3/capsule.go 81.82% <0.00%> (ø)
http3/client.go 90.50% <0.00%> (+0.04%) ⬆️
sys_conn_oob.go 72.73% <0.00%> (+0.42%) ⬆️
client.go 80.00% <0.00%> (+1.09%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@marten-seemann marten-seemann changed the title Use go run for mockgen. use go run for mockgen Nov 11, 2022
@marten-seemann marten-seemann changed the title use go run for mockgen use go run for mockgen, goimports and ginkgo Nov 11, 2022
@marten-seemann marten-seemann merged commit 9540d0f into quic-go:master Nov 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants