增加 smbbrowser 的测试用例,覆盖率 83% #1236
Merged
Annotations
6 warnings
tests/plugins/filemanager/dfmplugin-smbbrowser/displaycontrol/menu/ut_virtualentrymenuscene.cpp#L239
The scope of the variable 'unmountResult' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced:\012void f(int x)\012{\012 int i = 0;\012 if (x) {\012 // it's safe to move 'int i = 0;' here\012 for (int n = 0; n < 10; ++n) {\012 // it is possible but not safe to move 'int i = 0;' here\012 do_something(&i);\012 }\012 }\012}\012When you see this message it is always safe to reduce the variable scope 1 level.
|
tests/plugins/filemanager/dfmplugin-smbbrowser/displaycontrol/ut_protocoldevicedisplaymanager.cpp#L79
Redundant initialization for 'mode'. The initialized value is overwritten before it is read.
|
tests/plugins/filemanager/dfmplugin-smbbrowser/displaycontrol/ut_protocoldevicedisplaymanager.cpp#L115
Redundant initialization for 'mode'. The initialized value is overwritten before it is read.
|
tests/plugins/filemanager/dfmplugin-smbbrowser/displaycontrol/ut_protocoldevicedisplaymanager.cpp#L121
Variable 'showOffline' is reassigned a value before the old one has been used.
|
tests/plugins/filemanager/dfmplugin-smbbrowser/displaycontrol/ut_protocoldevicedisplaymanager.cpp#L122
Variable 'mode' is reassigned a value before the old one has been used.
|
tests/plugins/filemanager/dfmplugin-smbbrowser/displaycontrol/ut_protocoldevicedisplaymanager.cpp#L134
Variable 'showOffline' is reassigned a value before the old one has been used.
|
The logs for this run have expired and are no longer available.
Loading