lcov -r all.info "*.h" -o all.info --rc lcov_branch_coverage=1 // 从all.info中移除头文件的所有内容 Reading tracefile all.info Removing /mnt/hgfs/linuxShareFile/testDemo/utdemo/demo/model/device/hardware/hardware.h Removing /mnt/hgfs/linuxShareFile/testDemo/utdemo/demo/model/model.h Removing /mnt/hgfs/linuxShareFile/testDemo/utdemo/demo/model/network/network.h Removing /mnt/hgfs/linuxShareFile/testDemo/utdemo/utdemo/src/gtest/cppfreemock/cpp11/basic_type.h Removing /mnt/hgfs/linuxShareFile/testDemo/utdemo/utdemo/src/gtest/cppfreemock/cpp11/impl.h Removing /mnt/hgfs/linuxShareFile/testDemo/utdemo/utdemo/src/gtest/cppfreemock/posix/runtime_patch_impl.h Removing /mnt/hgfs/linuxShareFile/testDemo/utdemo/utdemo/src/gtest/cppfreemock/runtime_patch.h Removing /mnt/hgfs/linuxShareFile/testDemo/utdemo/utdemo/src/gtest/cppfreemock/x86/runtime_patch_impl.h Removing /mnt/hgfs/linuxShareFile/testDemo/utdemo/utdemo/src/gtest/gmock/head/gmock/gmock-actions.h Removing /mnt/hgfs/linuxShareFile/testDemo/utdemo/utdemo/src/gtest/gmock/head/gmock/gmock-cardinalities.h Removing /mnt/hgfs/linuxShareFile/testDemo/utdemo/utdemo/src/gtest/gmock/head/gmock/gmock-generated-actions.h Removing /mnt/hgfs/linuxShareFile/testDemo/utdemo/utdemo/src/gtest/gmock/head/gmock/gmock-generated-function-mockers.h Removing /mnt/hgfs/linuxShareFile/testDemo/utdemo/utdemo/src/gtest/gmock/head/gmock/gmock-matchers.h Removing /mnt/hgfs/linuxShareFile/testDemo/utdemo/utdemo/src/gtest/gmock/head/gmock/gmock-more-actions.h Removing /mnt/hgfs/linuxShareFile/testDemo/utdemo/utdemo/src/gtest/gmock/head/gmock/gmock-spec-builders.h Removing /mnt/hgfs/linuxShareFile/testDemo/utdemo/utdemo/src/gtest/gmock/head/gmock/internal/gmock-internal-utils.h Removing /mnt/hgfs/linuxShareFile/testDemo/utdemo/utdemo/src/gtest/head/gtest/gtest-message.h Removing /mnt/hgfs/linuxShareFile/testDemo/utdemo/utdemo/src/gtest/head/gtest/gtest-printers.h Removing /mnt/hgfs/linuxShareFile/testDemo/utdemo/utdemo/src/gtest/head/gtest/gtest-test-part.h Removing /mnt/hgfs/linuxShareFile/testDemo/utdemo/utdemo/src/gtest/head/gtest/gtest.h Removing /mnt/hgfs/linuxShareFile/testDemo/utdemo/utdemo/src/gtest/head/gtest/internal/gtest-death-test-internal.h Removing /mnt/hgfs/linuxShareFile/testDemo/utdemo/utdemo/src/gtest/head/gtest/internal/gtest-internal.h Removing /mnt/hgfs/linuxShareFile/testDemo/utdemo/utdemo/src/gtest/head/gtest/internal/gtest-linked_ptr.h Removing /mnt/hgfs/linuxShareFile/testDemo/utdemo/utdemo/src/gtest/head/gtest/internal/gtest-param-util.h Removing /mnt/hgfs/linuxShareFile/testDemo/utdemo/utdemo/src/gtest/head/gtest/internal/gtest-port.h Removing /mnt/hgfs/linuxShareFile/testDemo/utdemo/utdemo/src/head/test_model.h Removing /mnt/hgfs/linuxShareFile/testDemo/utdemo/utdemo/src/head/test_normal.h Removing /usr/include/bits/stdio2.h Removing /usr/include/bits/string3.h Removing /usr/include/c++/4.8.2/bits/alloc_traits.h Removing /usr/include/c++/4.8.2/bits/basic_string.h Removing /usr/include/c++/4.8.2/bits/char_traits.h Removing /usr/include/c++/4.8.2/bits/functional_hash.h Removing /usr/include/c++/4.8.2/bits/hashtable.h Removing /usr/include/c++/4.8.2/bits/hashtable_policy.h Removing /usr/include/c++/4.8.2/bits/locale_facets.h Removing /usr/include/c++/4.8.2/bits/move.h Removing /usr/include/c++/4.8.2/bits/shared_ptr.h Removing /usr/include/c++/4.8.2/bits/shared_ptr_base.h Removing /usr/include/c++/4.8.2/bits/stl_algobase.h Removing /usr/include/c++/4.8.2/bits/stl_bvector.h Removing /usr/include/c++/4.8.2/bits/stl_construct.h Removing /usr/include/c++/4.8.2/bits/stl_iterator.h Removing /usr/include/c++/4.8.2/bits/stl_iterator_base_funcs.h Removing /usr/include/c++/4.8.2/bits/stl_list.h Removing /usr/include/c++/4.8.2/bits/stl_pair.h Removing /usr/include/c++/4.8.2/bits/stl_set.h Removing /usr/include/c++/4.8.2/bits/stl_tree.h Removing /usr/include/c++/4.8.2/bits/stl_uninitialized.h Removing /usr/include/c++/4.8.2/bits/stl_vector.h Removing /usr/include/c++/4.8.2/bits/unordered_map.h Removing /usr/include/c++/4.8.2/ext/alloc_traits.h Removing /usr/include/c++/4.8.2/ext/atomicity.h Removing /usr/include/c++/4.8.2/ext/concurrence.h Removing /usr/include/c++/4.8.2/ext/new_allocator.h Deleted 55 files Writing data to all.info Summary coverage rate: lines......: 43.7% (162 of 371 lines) functions..: 24.6% (34 of 138 functions) branches...: 12.3% (80 of 649 branches) lcov -r all.info "/gtest/" -o all.info --rc lcov_branch_coverage=1 // 从all.info中移除gtest目录下的所有内容 Reading tracefile all.info Deleted 0 files Writing data to all.info Summary coverage rate: lines......: 43.7% (162 of 371 lines) functions..: 24.6% (34 of 138 functions) branches...: 12.3% (80 of 649 branches) lcov -r all.info "/usr/" -o all.info --rc lcov_branch_coverage=1 // 从all.info中移除usr目录下的所有内容 Reading tracefile all.info Removing /usr/include/c++/4.8.2/bits/basic_string.tcc Removing /usr/include/c++/4.8.2/bits/list.tcc Removing /usr/include/c++/4.8.2/bits/vector.tcc Removing /usr/include/c++/4.8.2/functional Removing /usr/include/c++/4.8.2/initializer_list Removing /usr/include/c++/4.8.2/iostream Removing /usr/include/c++/4.8.2/ostream Removing /usr/include/c++/4.8.2/sstream Removing /usr/include/c++/4.8.2/streambuf Removing /usr/include/c++/4.8.2/tuple Removing /usr/include/c++/4.8.2/typeinfo Deleted 11 files Writing data to all.info Summary coverage rate: lines......: 28.2% (66 of 234 lines) functions..: 18.2% (20 of 110 functions) branches...: 12.2% (62 of 510 branches) |