Class GoTestDescriptionArg

    • Method Detail

      • getLibrary

        public Optional<BuildTarget> getLibrary()
        Returns:
        The value of the library attribute
      • getPackageName

        public Optional<String> getPackageName()
        Returns:
        The value of the packageName attribute
      • getCoverageMode

        public Optional<com.facebook.buck.features.go.GoTestCoverStep.Mode> getCoverageMode()
        Returns:
        The value of the coverageMode attribute
      • getEnv

        public com.google.common.collect.ImmutableMap<String,​StringWithMacros> getEnv()
        Returns:
        The value of the env attribute
      • getRunTestSeparately

        public boolean getRunTestSeparately()
        Returns:
        The value of the runTestSeparately attribute
      • getCompatibleWith

        public com.google.common.collect.ImmutableList<UnconfiguredBuildTarget> getCompatibleWith()
        Description copied from interface: BuildRuleArg
        A list of config_setting a target is compatible with.
        Specified by:
        getCompatibleWith in interface BuildRuleArg
        Returns:
        The value of the compatibleWith attribute
      • getDefaultTargetPlatform

        public Optional<UnconfiguredBuildTarget> getDefaultTargetPlatform()
        Description copied from interface: BuildRuleArg
        The name of build target default "new" platform: it is used when a platform is not specified either globally or in a target which used this target as a dependency.

        The value is a build target, but we specify it as string, because this function is not actually called, but the attr is fetched by name from the raw (unconfigured) target node.

        Specified by:
        getDefaultTargetPlatform in interface BuildRuleArg
        Returns:
        The value of the defaultTargetPlatform attribute
      • getLabels

        public com.google.common.collect.ImmutableSortedSet<String> getLabels()
        Specified by:
        getLabels in interface BuildRuleArg
        Returns:
        The value of the labels attribute
      • getLicenses

        public com.google.common.collect.ImmutableSet<SourcePath> getLicenses()
        Specified by:
        getLicenses in interface BuildRuleArg
        Returns:
        The value of the licenses attribute
      • getContacts

        public com.google.common.collect.ImmutableSortedSet<String> getContacts()
        Specified by:
        getContacts in interface HasContacts
        Returns:
        The value of the contacts attribute
      • getDeps

        public com.google.common.collect.ImmutableSortedSet<BuildTarget> getDeps()
        Specified by:
        getDeps in interface HasDeclaredDeps
        Returns:
        The value of the deps attribute
      • getSrcs

        public com.google.common.collect.ImmutableSortedSet<SourcePath> getSrcs()
        Specified by:
        getSrcs in interface HasSrcs
        Returns:
        The value of the srcs attribute
      • getLinkMode

        public Optional<com.facebook.buck.features.go.GoLinkStep.LinkMode> getLinkMode()
        Specified by:
        getLinkMode in interface HasGoLinkable
        Returns:
        The value of the linkMode attribute
      • getCompilerFlags

        public com.google.common.collect.ImmutableList<String> getCompilerFlags()
        Specified by:
        getCompilerFlags in interface HasGoLinkable
        Returns:
        The value of the compilerFlags attribute
      • getAssemblerFlags

        public com.google.common.collect.ImmutableList<String> getAssemblerFlags()
        Specified by:
        getAssemblerFlags in interface HasGoLinkable
        Returns:
        The value of the assemblerFlags attribute
      • getLinkerFlags

        public com.google.common.collect.ImmutableList<String> getLinkerFlags()
        Specified by:
        getLinkerFlags in interface HasGoLinkable
        Returns:
        The value of the linkerFlags attribute
      • getExternalLinkerFlags

        public com.google.common.collect.ImmutableList<String> getExternalLinkerFlags()
        Specified by:
        getExternalLinkerFlags in interface HasGoLinkable
        Returns:
        The value of the externalLinkerFlags attribute
      • getResources

        public com.google.common.collect.ImmutableSortedSet<SourcePath> getResources()
        Specified by:
        getResources in interface HasGoLinkable
        Returns:
        The value of the resources attribute
      • equals

        public boolean equals​(@Nullable
                              Object another)
        This instance is equal to all instances of GoTestDescriptionArg that have equal attribute values.
        Overrides:
        equals in class Object
        Returns:
        true if this is equal to another instance
      • hashCode

        public int hashCode()
        Computes a hash code from attributes: library, packageName, coverageMode, env, runTestSeparately, compatibleWith, defaultTargetPlatform, labels, licenses, name, contacts, deps, srcs, runner, specs, testRuleTimeoutMs, platform, linkStyle, linkMode, compilerFlags, assemblerFlags, linkerFlags, externalLinkerFlags, resources.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

        public String toString()
        Prints the immutable value GoTestDescriptionArg with attribute values.
        Overrides:
        toString in class Object
        Returns:
        A string representation of the value