Class ImmutableTestInfo
- java.lang.Object
-
- com.facebook.buck.core.starlark.compatible.BuckStarlarkStructObject
-
- com.facebook.buck.core.rules.providers.impl.BuiltInProviderInfo<TestInfo>
-
- com.facebook.buck.core.rules.providers.lib.TestInfo
-
- com.facebook.buck.core.rules.providers.lib.ImmutableTestInfo
-
- All Implemented Interfaces:
ProviderInfo<TestInfo>
,SkylarkProviderInfo
,com.google.devtools.build.lib.skylarkinterface.SkylarkPrintable
,com.google.devtools.build.lib.skylarkinterface.SkylarkValue
,com.google.devtools.build.lib.syntax.ClassObject
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableTestInfo extends TestInfo
Immutable implementation ofTestInfo
.Use the static factory method to create immutable instances:
new ImmutableTestInfo()
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.common.collect.ImmutableSet<String>
contacts()
boolean
equals(Object another)
This instance is equal to all instances ofImmutableTestInfo
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:testName
,testCaseName
,labels
,contacts
,timeoutMs
,runTestsSeparately
,type
.com.google.common.collect.ImmutableSet<String>
labels()
boolean
runTestsSeparately()
String
testCaseName()
String
testName()
Object
timeoutMs()
String
toString()
Prints the immutable valueTestInfo
with attribute values.String
type()
Optional<Long>
typedTimeoutMs()
-
Methods inherited from class com.facebook.buck.core.rules.providers.lib.TestInfo
instantiateFromSkylark, of
-
Methods inherited from class com.facebook.buck.core.rules.providers.impl.BuiltInProviderInfo
getDeclaredClass, getProvider, getProviderInfo, isImmutable
-
Methods inherited from class com.facebook.buck.core.starlark.compatible.BuckStarlarkStructObject
getErrorMessageForUnknownField, getFieldNames, getMethods, getValue, repr
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Constructor Detail
-
ImmutableTestInfo
public ImmutableTestInfo(String testName, String testCaseName, Iterable<String> labels, Iterable<String> contacts, Object timeoutMs, boolean runTestsSeparately, String type)
Construct a new immutableTestInfo
instance.- Parameters:
testName
- The value for thetestName
attributetestCaseName
- The value for thetestCaseName
attributelabels
- The value for thelabels
attributecontacts
- The value for thecontacts
attributetimeoutMs
- The value for thetimeoutMs
attributerunTestsSeparately
- The value for therunTestsSeparately
attributetype
- The value for thetype
attribute
-
-
Method Detail
-
testName
public String testName()
-
testCaseName
public String testCaseName()
- Specified by:
testCaseName
in classTestInfo
- Returns:
- the name of the test case
-
labels
public com.google.common.collect.ImmutableSet<String> labels()
-
contacts
public com.google.common.collect.ImmutableSet<String> contacts()
-
runTestsSeparately
public boolean runTestsSeparately()
- Specified by:
runTestsSeparately
in classTestInfo
-
type
public String type()
-
equals
public boolean equals(@Nullable Object another)
This instance is equal to all instances ofImmutableTestInfo
that have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:testName
,testCaseName
,labels
,contacts
,timeoutMs
,runTestsSeparately
,type
.
-
toString
public String toString()
Prints the immutable valueTestInfo
with attribute values.
-
typedTimeoutMs
public Optional<Long> typedTimeoutMs()
Returns a lazily initialized value of the
typedTimeoutMs
attribute. Initialized once and only once and stored for subsequent access with proper synchronization.- Overrides:
typedTimeoutMs
in classTestInfo
- Returns:
- A lazily initialized value of the
typedTimeoutMs
attribute
-
-