- 
                Notifications
    You must be signed in to change notification settings 
- Fork 530
add ut for kv tansfer module #1531
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 ut for kv tansfer module #1531
Conversation
Signed-off-by: lixudong <lixudong@cmss.chinamobile.com>
| @Yikun help ro review my ut code | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
file name should be test_xxx
| self.deallocate_buffer = MagicMock() | ||
|  | ||
|  | ||
| class TestSimpleBuffer(unittest.TestCase): | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please inherit from
Line 6 in 8013634
| class TestBase(unittest.TestCase): | 
to make sure the patch applied.
| self.assertIsNotNone(result) | ||
|  | ||
|  | ||
| if __name__ == '__main__': | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be removed
Signed-off-by: lixudong <lixudong@cmss.chinamobile.com>
Signed-off-by: lixudong <lixudong@cmss.chinamobile.com>
Signed-off-by: lixudong <lixudong@cmss.chinamobile.com>
Signed-off-by: MengqingCao <cmq0113@163.com>
Signed-off-by: lixudong <lixudong@cmss.chinamobile.com>
Signed-off-by: lixudong <lixudong@cmss.chinamobile.com>
Signed-off-by: lixudong <lixudong@cmss.chinamobile.com>
| Codecov Report❌ Patch coverage is  
 Additional details and impacted files@@            Coverage Diff             @@
##             main    #1531      +/-   ##
==========================================
+ Coverage   27.39%   37.00%   +9.61%     
==========================================
  Files          56       70      +14     
  Lines        6191     7877    +1686     
==========================================
+ Hits         1696     2915    +1219     
- Misses       4495     4962     +467     
 Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
 | 
| @MengqingCao @Yikun help me to review my UT code | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
### What this PR does / why we need it? test kv data transfer contains connect,pipe,buffer ### Does this PR introduce _any_ user-facing change? N/A ### How was this patch tested? CI passed with new added test. --------- Signed-off-by: lixudong <lixudong@cmss.chinamobile.com> Signed-off-by: MengqingCao <cmq0113@163.com> Co-authored-by: lixudong <lixudong@cmss.chinamobile.com> Co-authored-by: MengqingCao <cmq0113@163.com> Signed-off-by: ZhengWG <zwg0606@gmail.com>
### What this PR does / why we need it? test kv data transfer contains connect,pipe,buffer ### Does this PR introduce _any_ user-facing change? N/A ### How was this patch tested? CI passed with new added test. --------- Signed-off-by: lixudong <lixudong@cmss.chinamobile.com> Signed-off-by: MengqingCao <cmq0113@163.com> Co-authored-by: lixudong <lixudong@cmss.chinamobile.com> Co-authored-by: MengqingCao <cmq0113@163.com> Signed-off-by: ZhengWG <zwg0606@gmail.com>
### What this PR does / why we need it? test kv data transfer contains connect,pipe,buffer ### Does this PR introduce _any_ user-facing change? N/A ### How was this patch tested? CI passed with new added test. --------- Signed-off-by: lixudong <lixudong@cmss.chinamobile.com> Signed-off-by: MengqingCao <cmq0113@163.com> Co-authored-by: lixudong <lixudong@cmss.chinamobile.com> Co-authored-by: MengqingCao <cmq0113@163.com>
### What this PR does / why we need it? test kv data transfer contains connect,pipe,buffer ### Does this PR introduce _any_ user-facing change? N/A ### How was this patch tested? CI passed with new added test. --------- Signed-off-by: lixudong <lixudong@cmss.chinamobile.com> Signed-off-by: MengqingCao <cmq0113@163.com> Co-authored-by: lixudong <lixudong@cmss.chinamobile.com> Co-authored-by: MengqingCao <cmq0113@163.com>
What this PR does / why we need it?
test kv data transfer contains connect,pipe,buffer
Does this PR introduce any user-facing change?
N/A
How was this patch tested?
CI passed with new added test.