aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/rules/test/InstrumentedFilesProviderImpl.java
diff options
context:
space:
mode:
authorGravatar Googler <noreply@google.com>2015-02-18 17:36:34 +0000
committerGravatar Han-Wen Nienhuys <hanwen@google.com>2015-02-18 17:36:34 +0000
commit39a3f45260b779c2415263e3dccecba8649e2af8 (patch)
tree6a7210cf95e39a0e57908cbc04f3aa342ed59da9 /src/main/java/com/google/devtools/build/lib/rules/test/InstrumentedFilesProviderImpl.java
parent2c41b59388d0cacc0202d0d470100db87dc5a1ab (diff)
Coverage implementation for Objective C.
Added gcnoFile() to translate a source file to its corrosponding .gcno file. Added "-fprofile-arcs", "-ftest-coverage", "-fprofile-dir=./coverage_output" to compiler flags when compiling in coverage mode. Added "-fprofile-arcs", "-ftest-coverage" to linker flags when linking in coverage mode. Added constructor for InstrumentedFilesProviderImpl that was recently removed due to being unused in []. Added .gcno files to runfiles of IosTest runner to be used by gcov after tests have been run. This CL + [] will enable blaze coverage will work on an ios_test target. An example of the [] output of this change + [] is -- MOS_MIGRATED_REVID=86601223
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/test/InstrumentedFilesProviderImpl.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/rules/test/InstrumentedFilesProviderImpl.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/test/InstrumentedFilesProviderImpl.java b/src/main/java/com/google/devtools/build/lib/rules/test/InstrumentedFilesProviderImpl.java
index 1452e2db43..ad5f333197 100644
--- a/src/main/java/com/google/devtools/build/lib/rules/test/InstrumentedFilesProviderImpl.java
+++ b/src/main/java/com/google/devtools/build/lib/rules/test/InstrumentedFilesProviderImpl.java
@@ -36,6 +36,12 @@ public final class InstrumentedFilesProviderImpl implements InstrumentedFilesPro
private final NestedSet<Artifact> instrumentedFiles;
private final NestedSet<Artifact> instrumentationMetadataFiles;
+ public InstrumentedFilesProviderImpl(NestedSet<Artifact> instrumentedFiles,
+ NestedSet<Artifact> instrumentationMetadataFiles) {
+ this.instrumentedFiles = instrumentedFiles;
+ this.instrumentationMetadataFiles = instrumentationMetadataFiles;
+ }
+
public InstrumentedFilesProviderImpl(InstrumentedFilesCollector collector) {
this.instrumentedFiles = collector.getInstrumentedFiles();
this.instrumentationMetadataFiles = collector.getInstrumentationMetadataFiles();