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

Add unit test for ModShardingAlgorithm check Argument(#17695) #17772

Merged
merged 3 commits into from
May 19, 2022

Conversation

galaxylqx
Copy link
Contributor

Fixes #17695.

Changes proposed in this pull request:
-Add unit test for ModShardingAlgorithm check Argument

@strongduanmu strongduanmu added this to the 5.1.2 milestone May 18, 2022
Copy link
Member

@strongduanmu strongduanmu left a comment

Choose a reason for hiding this comment

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

Hi @galaxylqx, can you fix ci error first?

@codecov-commenter
Copy link

Codecov Report

Merging #17772 (0edbcfe) into master (c1fe31c) will increase coverage by 0.11%.
The diff coverage is 47.36%.

@@             Coverage Diff              @@
##             master   #17772      +/-   ##
============================================
+ Coverage     59.02%   59.14%   +0.11%     
- Complexity     2128     2131       +3     
============================================
  Files          3593     3594       +1     
  Lines         53378    53384       +6     
  Branches       9116     9113       -3     
============================================
+ Hits          31506    31572      +66     
+ Misses        19207    19142      -65     
- Partials       2665     2670       +5     
Impacted Files Coverage Δ
...ser/core/common/CommonDistSQLStatementVisitor.java 0.00% <0.00%> (ø)
...generator/EncryptInsertOnUpdateTokenGenerator.java 67.74% <ø> (+66.66%) ⬆️
...lder/DefaultSQLParserRuleConfigurationBuilder.java 0.00% <0.00%> (ø)
.../SQLParserCacheOptionConfigurationYamlSwapper.java 0.00% <0.00%> (ø)
...espace/parser/CacheOptionBeanDefinitionParser.java 100.00% <ø> (ø)
...de/manager/memory/MemoryContextManagerBuilder.java 0.00% <0.00%> (ø)
...ckend/text/distsql/ral/advanced/FormatHandler.java 0.00% <0.00%> (ø)
...sphere/proxy/initializer/BootstrapInitializer.java 0.00% <0.00%> (ø)
...n/updatable/AlterSQLParserRuleStatementAssert.java 66.66% <ø> (-2.09%) ⬇️
...rameterized/engine/SQLParserParameterizedTest.java 0.00% <0.00%> (ø)
... and 64 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ae0ec0d...0edbcfe. Read the comment docs.

@galaxylqx
Copy link
Contributor Author

done

@strongduanmu strongduanmu merged commit a393962 into apache:master May 19, 2022
@galaxylqx galaxylqx deleted the dev branch May 19, 2022 06:19
zhaoguhong added a commit to zhaoguhong/shardingsphere that referenced this pull request May 19, 2022
* master:
  Fix the exception when specifying schema when JDBC connects to Proxy (apache#17611)
  Add ProxyContextRestorer to restore proxy context in test cases (apache#17802)
  Remove redundant blank chars and lines in codes (apache#17799)
  Supports scaling MySQL table which only contains unique index (apache#17786)
  Add unit test for ModShardingAlgorithm check Argument(apache#17695) (apache#17772)
  Move getSchemas method to ShardingSphereDatabase (apache#17798)
  Fix unit tests in proxy-frontend-core affected by other tests (apache#17796)
  Update powered by (apache#17795)
  Add support for more JSR-310 related classes about JDBC Timestamp in IntervalShardingAlgorithm (apache#17754)
  Rename ShardingSphereMetaData to ShardingSphereDatabaseMetaData (apache#17792)
  Rename MetaDataContexts.persistService (apache#17789)
  Move ContextManager.executorEngine (apache#17783)
  Change proxy log print at Docker images, get more information (apache#17788)
  fix datasource closed exception for db-discovery (apache#17774)
  Add lock method for schema in lock manager (apache#17787)
  Refactor MetaDataChangedWatcher (apache#17781)
  Refactor PipelineTableMetaDataLoader and fix typo in PipelineTableMetaData (apache#17778)
  Rename DatabaseRulesBuilder (apache#17780)

# Conflicts:
#	shardingsphere-features/shardingsphere-encrypt/shardingsphere-encrypt-core/src/test/java/org/apache/shardingsphere/encrypt/merge/dql/EncryptAlgorithmMetaDataTest.java
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants