-
Notifications
You must be signed in to change notification settings - Fork 950
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
test: add unit test case for func in cli/inspect package #2599
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2599 +/- ##
==========================================
- Coverage 69.57% 69.56% -0.02%
==========================================
Files 280 280
Lines 18844 18844
==========================================
- Hits 13111 13108 -3
+ Misses 4268 4265 -3
- Partials 1465 1471 +6
|
I am not find change in vendor.json, don't you use govendor to add vendor packages ? |
emm, I add it in under the vendor directory. Sorry, i'm a green hand. o(╥﹏╥)o |
Check this, https://github.com/kardianos/govendor |
@Ace-Tang Thank you very much, I have added it. I'm happy to learn a new skill. (^▽^) |
@chuanchang Thank you for your reviewing, feedback and for giving me the opportunity to improve my work. I am looking forward to hearing from you soon. |
LGTM, @Ace-Tang @allencloud please give a double check, thanks. |
Signed-off-by: jahentao <jahentao@qq.com>
Happy New Year! Even though it has little technical content, It's a meaningful PR of my PaaS homework in the past year. It is an important milestone for me to entry opensource and join a helpful community. |
So good to have you. @jahentao Please feel free to contact with us on GitHub or dingtalk group if you have any question. Thanks. |
Emm, Can this PR be merged? Or, what's wrong with it? o(╥﹏╥)o |
Thanks for your work. Really appreciate it. @jahentao |
Signed-off-by: jahentao jahentao@qq.com
Ⅰ. Describe what this PR did
test: add unit test case for func in cli/inspect package, such as
TestNewTemplateInspector
,TestNewTemplateInspectorFromString
,TestInspect
,TestTemplateInspector_Inspect
,TestTemplateInspector_Flush
,TestNewIndentedInspector
,TestIndentedInspector_Inspect
,TestIndentedInspector_Flush
Ⅱ. Does this pull request fix one issue?
NONE
Ⅲ. Why don't you add test cases (unit test/integration test)? (你真的觉得不需要加测试吗?)
added
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews
for some reason, I add a repository
github.com/google/go-cmp/cmp
for comparing of twoTemplate
, because thereflect.DeepEqual
method not works.