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

expression: support for testing a single vectorized evaluation function #12153

Merged
merged 25 commits into from
Sep 18, 2019

Conversation

Reminiscent
Copy link
Contributor

@Reminiscent Reminiscent commented Sep 11, 2019

What problem does this PR solve?

Support for testing a single vectorized evaluation function.

What is changed and how it works?

Use go test -args to decide the test which function signature you want to run.

For example, if you want to test the builtinLog10Sig and builtinSqrtSig. You can input go test -v -benchmem -bench=BenchmarkVectorizedBuiltinMathFunc -run=BenchmarkVectorizedBuiltinMathFunc -args "builtinLog10Sig" "builtinSqrtSig" . Just input the function signature behind the "-args" flag. If you want to run all of the test, just ignore the "-args" flag.

Check List

Tests

  • Unit test

expression/bench_test.go Outdated Show resolved Hide resolved
Co-Authored-By: Yuanjia Zhang <[email protected]>
@codecov
Copy link

codecov bot commented Sep 11, 2019

Codecov Report

Merging #12153 into master will not change coverage.
The diff coverage is n/a.

@@             Coverage Diff             @@
##             master     #12153   +/-   ##
===========================================
  Coverage   81.1232%   81.1232%           
===========================================
  Files           454        454           
  Lines         98608      98608           
===========================================
  Hits          79994      79994           
  Misses        12850      12850           
  Partials       5764       5764

expression/bench_test.go Outdated Show resolved Hide resolved
expression/bench_test.go Outdated Show resolved Hide resolved
expression/bench_test.go Outdated Show resolved Hide resolved
expression/bench_test.go Outdated Show resolved Hide resolved
expression/bench_test.go Outdated Show resolved Hide resolved
expression/bench_test.go Outdated Show resolved Hide resolved
@Reminiscent
Copy link
Contributor Author

@lamxTyler Update. PTAL

@Reminiscent Reminiscent requested review from zz-jason, qw4990 and alivxxx and removed request for SunRunAway and XuHuaiyu September 18, 2019 02:44
Copy link
Contributor

@alivxxx alivxxx left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@qw4990 qw4990 left a comment

Choose a reason for hiding this comment

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

LGTM

@zz-jason zz-jason removed their request for review September 18, 2019 02:48
@zz-jason zz-jason added status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2. labels Sep 18, 2019
@sre-bot
Copy link
Contributor

sre-bot commented Sep 18, 2019

/run-all-tests

@sre-bot
Copy link
Contributor

sre-bot commented Sep 18, 2019

@Reminiscent merge failed.

@qw4990
Copy link
Contributor

qw4990 commented Sep 18, 2019

/run-unit-test

@qw4990 qw4990 merged commit 4a87083 into pingcap:master Sep 18, 2019
@Reminiscent Reminiscent deleted the TestFramework branch December 24, 2019 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/expression component/test status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants