Home
last modified time | relevance | path

Searched refs:coverage (Results 1 – 25 of 589) sorted by relevance

12345678910>>...24

/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-cov/
H A DCoverageFilters.h23 namespace coverage {
34 virtual bool matches(const coverage::CoverageMapping &CM, in matches()
35 const coverage::FunctionRecord &Function) const { in matches()
52 bool matches(const coverage::CoverageMapping &CM,
53 const coverage::FunctionRecord &Function) const override;
63 bool matches(const coverage::CoverageMapping &CM,
64 const coverage::FunctionRecord &Function) const override;
78 bool matches(const coverage::CoverageMapping &CM,
79 const coverage::FunctionRecord &Function) const override;
115 bool matches(const coverage::CoverageMapping &CM,
[all …]
H A DCoverageFilters.cpp21 const coverage::CoverageMapping &, in matches()
22 const coverage::FunctionRecord &Function) const { in matches()
28 const coverage::CoverageMapping &, in matches()
29 const coverage::FunctionRecord &Function) const { in matches()
38 const coverage::CoverageMapping &, in matches()
39 const coverage::FunctionRecord &Function) const { in matches()
44 const coverage::CoverageMapping &CM, in matches()
45 const coverage::FunctionRecord &Function) const { in matches()
51 const coverage::CoverageMapping &CM, in matches()
52 const coverage::FunctionRecord &Function) const { in matches()
[all …]
H A DCoverageExporterLcov.cpp57 const iterator_range<coverage::FunctionRecordIterator> &Functions) { in renderFunctions()
67 const coverage::CoverageData &FileCoverage) { in renderLineExecutionCounts()
68 coverage::LineCoverageIterator LCI{FileCoverage, 1}; in renderLineExecutionCounts()
69 coverage::LineCoverageIterator LCIEnd = LCI.getEnd(); in renderLineExecutionCounts()
71 const coverage::LineCoverageStats &LCS = *LCI; in renderLineExecutionCounts()
78 std::vector<llvm::coverage::CountedRegion>
79 collectNestedBranches(const coverage::CoverageMapping &Coverage, in collectNestedBranches()
80 ArrayRef<llvm::coverage::ExpansionRecord> Expansions, in collectNestedBranches()
82 std::vector<llvm::coverage::CountedRegion> Branches; in collectNestedBranches()
108 bool sortLine(llvm::coverage::CountedRegion I, in sortLine()
[all …]
H A DCoverageExporterJson.cpp80 json::Array renderSegment(const coverage::CoverageSegment &Segment) { in renderSegment()
86 json::Array renderRegion(const coverage::CountedRegion &Region) { in renderRegion()
93 json::Array renderBranch(const coverage::CountedRegion &Region) { in renderBranch()
101 json::Array renderRegions(ArrayRef<coverage::CountedRegion> Regions) { in renderRegions()
108 json::Array renderBranchRegions(ArrayRef<coverage::CountedRegion> Regions) { in renderBranchRegions()
116 std::vector<llvm::coverage::CountedRegion>
117 collectNestedBranches(const coverage::CoverageMapping &Coverage, in collectNestedBranches()
118 ArrayRef<llvm::coverage::ExpansionRecord> Expansions) { in collectNestedBranches()
119 std::vector<llvm::coverage::CountedRegion> Branches; in collectNestedBranches()
138 json::Object renderExpansion(const coverage::CoverageMapping &Coverage, in renderExpansion()
[all …]
H A DCoverageReport.h25 const coverage::CoverageMapping &Coverage;
33 const coverage::CoverageMapping &Coverage) in CoverageReport()
41 prepareFileReports(const coverage::CoverageMapping &Coverage,
48 const coverage::CoverageMapping *Coverage,
/netbsd-src/external/bsd/openpam/dist/
H A DMakefile.am23 coverage: coverage-clean all coverage-prepare coverage-run coverage-report target
24 coverage-clean:
26 coverage-prepare:
31 coverage-run:
34 coverage-report:
45 coverage: target
H A Dconfigure.ac127 AC_ARG_ENABLE([code-coverage],
128 AS_HELP_STRING([--enable-code-coverage],
129 [enable code coverage]))
137 AC_MSG_ERROR([code coverage is only supported with clang])
139 AC_DEFINE([WITH_CODE_COVERAGE], [1], [Define to 1 if code coverage is enabled])
140 AC_MSG_NOTICE([code coverage enabled])
142 AC_MSG_ERROR([code coverage requires unit tests])
/netbsd-src/external/bsd/file/dist/magic/magdir/
H A Dcoverage3 # $File: coverage,v 1.3 2021/02/23 00:51:10 christos Exp $
4 # xoverage: file(1) magic for test coverage data
6 # File formats used to store test coverage data
11 # gcc -ftest-coverage
21 # GCC coverage tracefiles
29 0 lelong 0x67636e6f GCC gcno coverage (-ftest-coverage),
34 0 belong 0x67636e6f GCC gcno coverage (-ftest-coverage),
41 0 lelong 0x67636461 GCC gcda coverage (-fprofile-arcs),
46 0 belong 0x67636461 GCC gcda coverage (-fprofile-arcs),
52 # cf. http://ltp.sourceforge.net/coverage/lcov/geninfo.1.php
[all …]
/netbsd-src/external/gpl3/autoconf/dist/
H A DMakefile.am112 check-coverage-run: all
117 check-coverage-report:
127 check-coverage: check-coverage-run
128 $(MAKE) $(AM_MAKEFLAGS) check-coverage-report
130 clean-local: clean-coverage
131 clean-coverage:
134 .PHONY: check-coverage check-coverage-run check-coverage-report clean-coverage
/netbsd-src/external/apache2/llvm/dist/llvm/docs/CommandGuide/
H A Dllvm-cov.rst1 llvm-cov - emit coverage information
14 The :program:`llvm-cov` tool shows code coverage information for
16 work with ``gcov``\-style coverage or with ``clang``\'s instrumentation
46 The :program:`llvm-cov gcov` tool reads code coverage data files and displays
47 the coverage information for a specified source file. It is compatible with the
52 of your application that collects coverage data as it runs. Compile with the
53 ``-fprofile-arcs`` and ``-ftest-coverage`` options to add the
54 instrumentation. (Alternatively, you can use the ``--coverage`` option, which
57 coverage data cannot be accurately mapped back to the source code.
61 coverage data. The other half of the data comes from ``.gcda`` files that are
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/utils/lit/utils/
H A Dcheck-coverage32 rm -f tests/.coverage
33 find tests -name .coverage.\* -exec rm {} \;
36 lit -sv --param check-coverage=1 "$@"
39 find tests/* -name .coverage.\* -exec mv {} tests \;
42 (cd tests && python -m coverage combine)
45 (cd tests && python -m coverage report)
49 (cd tests && python -m coverage html)
/netbsd-src/external/apache2/llvm/dist/clang/docs/
H A DSourceBasedCodeCoverage.rst11 This document explains how to use clang's source-based code coverage feature.
13 information directly. This allows it to generate very precise coverage data.
15 Clang ships two other code coverage implementations:
18 various sanitizers. It can provide up to edge-level coverage.
20 * gcov - A GCC-compatible coverage implementation which operates on DebugInfo.
21 This is enabled by ``-ftest-coverage`` or ``--coverage``.
23 From this point onwards "code coverage" will refer to the source-based kind.
25 The code coverage workflow
28 The code coverage workflow consists of three main steps:
30 * Compiling with coverage enabled.
[all …]
H A DSanitizerCoverage.rst11 LLVM has a simple code coverage instrumentation built in (SanitizerCoverage).
14 simple coverage reporting and visualization,
15 however if you need *just* coverage visualization you may want to use
21 With ``-fsanitize-coverage=trace-pc-guard`` the compiler will insert the following code
100 clang++ -g -fsanitize-coverage=trace-pc-guard trace-pc-guard-example.cc -c
127 With ``-fsanitize-coverage=inline-8bit-counters`` the compiler will insert
129 This is similar to ``-fsanitize-coverage=trace-pc-guard`` but instead of a
148 With ``-fsanitize-coverage=inline-bool-flag`` the compiler will insert
150 This is similar to ``-fsanitize-coverage=inline-8bit-counter`` but instead of
174 With ``-fsanitize-coverage=pc-table`` the compiler will create a table of
[all …]
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/asan/
H A Dasan_activation.cc31 bool coverage; member
57 cf.coverage = coverage; in OverrideFromActivationFlags()
76 coverage = cf.coverage; in OverrideFromActivationFlags()
90 allocator_options.may_return_null, coverage, coverage_dir, in Print()
105 asan_deactivated_flags.coverage = common_flags()->coverage; in AsanDeactivate()
/netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/asan/
H A Dasan_activation.cc29 bool coverage; member
55 cf.coverage = coverage; in OverrideFromActivationFlags()
74 coverage = cf.coverage; in OverrideFromActivationFlags()
88 allocator_options.may_return_null, coverage, coverage_dir, in Print()
103 asan_deactivated_flags.coverage = common_flags()->coverage; in AsanDeactivate()
/netbsd-src/external/gpl3/gcc/dist/libsanitizer/asan/
H A Dasan_activation.cpp30 bool coverage; member
56 cf.coverage = coverage; in OverrideFromActivationFlags()
75 coverage = cf.coverage; in OverrideFromActivationFlags()
89 allocator_options.may_return_null, coverage, coverage_dir, in Print()
104 asan_deactivated_flags.coverage = common_flags()->coverage; in AsanDeactivate()
/netbsd-src/external/apache2/llvm/dist/llvm/docs/
H A DCoverageMappingFormat.rst14 LLVM's code coverage mapping format is used to provide code coverage
18 This document is aimed at those who would like to know how LLVM's code coverage
21 LLVM to provide code coverage analysis for their own programs, see the `Clang
24 We start by briefly describing LLVM's code coverage mapping format and the
25 way that Clang and LLVM's code coverage tool work with this format. After
26 the basics are down, more advanced features of the coverage mapping format
33 LLVM's code coverage mapping format is designed to be a self contained
36 to store the data that is required for a code coverage tool to map between
40 The mapping data is used in two places in the code coverage process:
51 After that, the tool is able to generate various code coverage reports
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/gcc/
H A Dgcov.c384 coverage_info coverage; variable
398 lines (), coverage (), maximum_count (0), functions () in source_info()
1366 char *gcov_file_name = make_gcov_file_name (file_name, src->coverage.name); in output_gcov_file()
1368 if (src->coverage.lines) in output_gcov_file()
1400 coverage_info coverage; in generate_results() local
1402 memset (&coverage, 0, sizeof (coverage)); in generate_results()
1403 coverage.name = fn->get_name (); in generate_results()
1404 add_line_counts (flag_function_summary ? &coverage : NULL, fn); in generate_results()
1407 function_summary (&coverage); in generate_results()
1420 file_name = sources[it->src].coverage.name; in generate_results()
[all …]
/netbsd-src/external/gpl3/gcc/dist/gcc/
H A Dgcov.cc387 coverage_info coverage; member in source_info
401 lines (), coverage (), maximum_count (0), functions () in source_info()
1462 = make_gcov_file_name (file_name, src->coverage.name); in output_gcov_file()
1465 if (src->coverage.lines) in output_gcov_file()
1502 coverage_info coverage; in generate_results() local
1504 memset (&coverage, 0, sizeof (coverage)); in generate_results()
1505 coverage.name = fn->get_name (); in generate_results()
1506 add_line_counts (flag_function_summary ? &coverage : NULL, fn); in generate_results()
1509 function_summary (&coverage); in generate_results()
1519 file_name = sources[it->src].coverage.name; in generate_results()
[all …]
/netbsd-src/external/bsd/libevent/dist/cmake/
H A DCodeCoverage.cmake42 # 3. Set compiler flags to turn off optimization and enable coverage:
43 # SET(CMAKE_CXX_FLAGS "-g -O0 -fprofile-arcs -ftest-coverage")
44 # SET(CMAKE_C_FLAGS "-g -O0 -fprofile-arcs -ftest-coverage")
47 # which runs your test executable and produces a lcov code coverage report:
53 # # otherwise the coverage generation will not complete.
54 # coverage # Name of output directory.
84 MESSAGE( WARNING "Code coverage results with an optimized (non-Debug) build may be misleading" )
91 # If not, no coverage report will be created!
122 …COMMENT "Resetting code coverage counters to zero.\nProcessing code coverage counters and generati…
128 COMMENT "Open ./${_outputname}/index.html in your browser to view the coverage report."
[all …]
/netbsd-src/external/mit/libcbor/dist/
H A DCMakeLists.txt97 add_custom_target(coverage target
99 COMMAND lcov --capture --directory . --output-file coverage.info
100 … COMMAND genhtml coverage.info --highlight --legend --output-directory coverage_html
105 option(COVERAGE "Enable code coverage instrumentation" OFF)
107 message("Configuring code coverage instrumentation")
112 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -fprofile-arcs -ftest-coverage --coverage")
113 …_LINKER_FLAGS_DEBUG "${CMAKE_EXE_LINKER_FLAGS_DEBUG} -g -fprofile-arcs -ftest-coverage --coverage")
/netbsd-src/usr.bin/make/
H A DMakefile27 # Whether to generate a coverage report after running the tests.
32 COPTS+= --coverage -O0 -ggdb
48 LDADD+= --coverage
116 ${MAKE} report-coverage
136 test-coverage: .PHONY
140 @env USE_COVERAGE=yes make report-coverage > coverage.txt
143 report-coverage: .PHONY
/netbsd-src/external/apache2/llvm/dist/llvm/bindings/python/
H A DREADME.txt40 You should strive for high code coverage. To see current coverage:
42 pip install coverage
43 nosetests --with-coverage --cover-html
45 Then open cover/index.html in your browser of choice to see the code coverage.
/netbsd-src/external/mit/libcbor/dist/doc/source/
H A Dtests.rst19 Code coverage
22 Every release is inspected using `GCOV/LCOV <http://ltp.sourceforge.net/coverage/lcov.php>`_. Platf…
26 make coverage
33 lcov --capture --directory . --output-file coverage.info
34 genhtml coverage.info --output-directory out
/netbsd-src/crypto/external/bsd/openssl.old/dist/fuzz/
H A DREADME.md43 -fsanitize-coverage=trace-pc-guard,indirect-calls,trace-cmp \
84 config with enable-fuzz-* or -fsanitize-coverage, but some of the other options
98 connection setup. This results in the coverage of the fuzzing corpus changing
99 depending on the random numbers. This also has an effect for coverage of the
100 rest of the test suite and you see the coverage change for each commit even when
103 Since we want to maximize the coverage of the fuzzing corpus, the client and
107 The coverage depends on the way the numbers are generated. We don't disable any
117 changes in what they send by default will have an impact on the coverage. The
130 The libfuzzer merge option is used to add the additional coverage

12345678910>>...24