This is an automated email from the ASF dual-hosted git repository.
zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new 84435cbbcda Add more tests on ShadowRule (#33574)
84435cbbcda is described below
commit 84435cbbcda3b8ac47ec87827c850f4dbc382a41
Author: Liang Zhang <[email protected]>
AuthorDate: Wed Nov 6 23:11:07 2024 +0800
Add more tests on ShadowRule (#33574)
---
.../test/java/org/apache/shardingsphere/shadow/rule/ShadowRuleTest.java | 1 +
1 file changed, 1 insertion(+)
diff --git
a/features/shadow/core/src/test/java/org/apache/shardingsphere/shadow/rule/ShadowRuleTest.java
b/features/shadow/core/src/test/java/org/apache/shardingsphere/shadow/rule/ShadowRuleTest.java
index 79cc0e975f3..79f074e057b 100644
---
a/features/shadow/core/src/test/java/org/apache/shardingsphere/shadow/rule/ShadowRuleTest.java
+++
b/features/shadow/core/src/test/java/org/apache/shardingsphere/shadow/rule/ShadowRuleTest.java
@@ -127,6 +127,7 @@ class ShadowRuleTest {
@Test
void assertGetColumnShadowAlgorithms() {
assertThat(rule.getColumnShadowAlgorithms(ShadowOperationType.INSERT,
"foo_tbl", "foo_id").size(), is(1));
+ assertTrue(rule.getColumnShadowAlgorithms(ShadowOperationType.INSERT,
"foo_tbl", "bar_id").isEmpty());
}
@Test