Lines Matching defs:CoverageMappingTest
100 struct CoverageMappingTest : ::testing::Test { struct
101 StringMap<unsigned> Files;
102 std::vector<InputFunctionCoverageData> InputFunctions;
103 std::vector<OutputFunctionCoverageData> OutputFunctions;
105 InstrProfWriter ProfileWriter;
106 std::unique_ptr<IndexedInstrProfReader> ProfileReader;
108 std::unique_ptr<CoverageMapping> LoadedCoverage;
110 void SetUp() override { in SetUp()
114 unsigned getGlobalFileIndex(StringRef Name) { in getGlobalFileIndex()
127 unsigned getFileIndexForFunction(StringRef Name) { in getFileIndexForFunction()
140 void startFunction(StringRef FuncName, uint64_t Hash) { in startFunction()
144 void addCMR(Counter C, StringRef File, unsigned LS, unsigned CS, unsigned LE, in addCMR()
150 void addExpansionCMR(StringRef File, StringRef ExpandedFile, unsigned LS, in addExpansionCMR()
157 std::string writeCoverageRegions(InputFunctionCoverageData &Data) { in writeCoverageRegions()
167 void readCoverageRegions(std::string Coverage, in readCoverageRegions()
178 void writeAndReadCoverageRegions(bool EmitFilenames = true) { in writeAndReadCoverageRegions()
190 void readProfCounts() { in readProfCounts()
197 void loadCoverageMapping(bool EmitFilenames = true) { in loadCoverageMapping()