Skip to content

Add unit test for function in go/sync2/atomic.go#6120

Merged
sougou merged 1 commit intovitessio:masterfrom
zouy414:UnitTest
Apr 28, 2020
Merged

Add unit test for function in go/sync2/atomic.go#6120
sougou merged 1 commit intovitessio:masterfrom
zouy414:UnitTest

Conversation

@zouy414
Copy link
Copy Markdown
Contributor

@zouy414 zouy414 commented Apr 27, 2020

Signed-off-by: ZouYu zouy.fnst@cn.fujitsu.com

@zouy414 zouy414 requested a review from sougou as a code owner April 27, 2020 06:37
Copy link
Copy Markdown
Contributor

@sougou sougou left a comment

Choose a reason for hiding this comment

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

The new coding standard encourage tests to use assert. Would you be able to change these? Here's an example: https://github.com/vitessio/vitess/blob/master/go/vt/servenv/exporter_test.go#L103

Signed-off-by: ZouYu <zouy.fnst@cn.fujitsu.com>
@zouy414
Copy link
Copy Markdown
Contributor Author

zouy414 commented Apr 28, 2020

@sougou , sorry for late reply, i have updated my code.

@sougou sougou merged commit 28aa5e0 into vitessio:master Apr 28, 2020
@deepthi deepthi added this to the v7.0 milestone Jul 27, 2020
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.

3 participants