Class GoTestCoverSource

    • Constructor Detail

      • GoTestCoverSource

        public GoTestCoverSource​(BuildTarget buildTarget,
                                 ProjectFilesystem projectFilesystem,
                                 SourcePathRuleFinder ruleFinder,
                                 com.facebook.buck.features.go.GoPlatform platform,
                                 com.google.common.collect.ImmutableSet<SourcePath> srcs,
                                 Tool cover,
                                 com.facebook.buck.features.go.GoTestCoverStep.Mode coverageMode)
    • Method Detail

      • getCoveredSources

        public com.google.common.collect.ImmutableSet<SourcePath> getCoveredSources()
      • getTestSources

        public com.google.common.collect.ImmutableSet<SourcePath> getTestSources()
      • getVariables

        public com.google.common.collect.ImmutableMap<String,​Path> getVariables()
      • getBuildDeps

        public SortedSet<BuildRule> getBuildDeps()
        Returns:
        the set of rules that must be built before this rule. Normally, this matches the value of the deps argument for this build rule in the build file in which it was defined.

        However, there are special cases where other arguments pull in implicit dependencies (e.g., the keystore argument in android_binary). In these cases, the implicit dependencies are also included in the set returned by this method. The value of the original deps argument, as defined in the build file, must be accessed via a custom getter provided by the build rule.

      • getSourcePathToOutput

        public SourcePath getSourcePathToOutput()